Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

182
Views
Auto Select RadComboBox values, Based On Values from Database
<telerik:RadComboBox ID="radddl1" runat="server" OnClientItemChecked="SetDropDownText" MaxHeight="200px" CheckedItemsTexts="DisplayAllInInput" CheckBoxes="true" EnableCheckAllItemsCheckBox="true"
 Localization-CheckAllString="All" Localization-AllItemsCheckedString="All" EmptyMessage="Not Applicable" DataSourceID="XmlHTypes" DataTextField="Text" 
DataValueField="value" DataMember="Item" />
 <asp:XmlDataSource ID="XmlHTypes" runat="server" DataFile="~/Xmls/HTypes.xml"></asp:XmlDataSource>

Please help me with this. I have a radcombobox which shows multiple dropdown with values and text in xml file :-

<HTypes>
  <Item value="1" Text="Not Applicable" />
  <Item value="2" Text="A" />
  <Item value="3" Text="B" />
  <Item value="4" Text="C" />
  <Item value="5" Text="D" />

</HTypes>

Now I want to auto select the values based on values in an array [1,2]. So as the content of array is [1,2] , I want Not Applicable AND A get selected automatically based on array values. Please help me with this.(In Javascript Code)

I have Tried This:-

var TCombo_Loc_1 = $find("<%=radddl1.ClientID%>");
var a = cHK_HCPCS.split(",");  //cHK_HCPCS="1,2"
for (var i = 0; i < a.length; i++) {
  
    var index = TCombo_Loc_1.FindItemIndexByValue(a[i]);
    radddl1.SelectedIndex = index;
}

But it says:--> Uncaught TypeError: TCombo_Loc_1.FindItemIndexByValue is not a function.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!