Jun 20, 2010, 11:27 AM
[CLOSED] Can't select items from multicombo
Hi
I have a multicombo like the one here is the first example here
and i bind it in this way
and selectByValue not checking the checkbox
so all what i need i have the values like "1,2,3" i need to check the items have these values when the combobox is expanded
thanks in advance
I have a multicombo like the one here is the first example here
and i bind it in this way
foreach (DataRow dataRow in x.DefaultView.Table.Rows)
{
this.chkg.Items.Add(
new ListItem
{
Value = dataRow["XId"] + "",
Text = dataRow["XName"] + ""
});
}
What i need to do is to select all the items from the client side when i expand it , here is my code for this part <ext:MultiCombo ID="chkg" runat="server" Width="260" >
<Listeners>
<Expand Handler="checkItems(this , '1,2,3' );" Delay="1000" />
</Listeners>
</ext:MultiCombo>
//i am using delay here because if the event fire directly we will not find the items intiated in the combobox
but when i use selectByIndex it's only selecting one item if i selected another one it deselect the first one and selectByValue not checking the checkbox
so all what i need i have the values like "1,2,3" i need to check the items have these values when the combobox is expanded
thanks in advance