<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.