Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

183
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda