This is a migrated thread and some comments may be shown as answers.

[Solved] OnClientSelectedIndexChanged doesn't fire when selection cleared

3 Answers 149 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 28 Jul 2008, 01:41 PM
I am successfully subscribing to OnClientSelectedIndexChanged when the user selects an item, but this does not fire when a user clears the selection.

Is there any way to pick up this event?

3 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 28 Jul 2008, 02:55 PM
Hello Mark,

You can subscribe to the OnClientKeyPressing event. It fires everytime when a key of the keyboard is pressed and the input of RadComboBox is focused.

Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
emidio rana
Top achievements
Rank 1
answered on 04 Jul 2009, 03:01 PM

 

I have a RadCombobox with checkbox with load on demand.  Can you give me a complete example with how i can valorize text property (for server side) on this mode valueA, valueB, ValueC, ecc for catch it server side?
Please example that work for check and unceck items.

Thanks.
This is my code. 

<
telerik:RadComboBox runat="server" ID="RadComboBox1" ShowWhileLoading="true"

 

 

EmptyMessage="Seleziona..." EnableLoadOnDemand="True" ShowMoreResultsBox="true"

 

 

ItemRequestTimeout="500" HighlightTemplatedItems="true" Height="100"

 

 

EnableVirtualScrolling="true" EnableItemCaching="True" OnClientSelectedIndexChanged=""

 

 

Skin="Hay"

 

 

OnItemsRequested="RadComboBox1_ItemsRequested">

 

 

<ItemTemplate>

 

 

<asp:CheckBox runat="server" ID="CheckBox" value='' Text=''/> <%# DataBinder.Eval(Container, "Attributes['Denominazione']")%>

 

 

</ItemTemplate>

 

 

</telerik:RadComboBox>

 

 

<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Show Selected Items" />

 

 

<asp:ListBox ID="ListBox1" runat="server" Width="160px"></asp:ListBox>

 

 

0
Simon
Telerik team
answered on 06 Jul 2009, 01:01 PM
Hello emidio rana,

Since you are Data Binding the ComboBox you could use the DataTextField and DataKeyField properties to map the Text and Value properties of Items to columns of the underlying data rows (more info here).

Here and here you could find two examples of a ComboBox with CheckBoxes. Are the useful to you?

Regards,
Simon
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
Tags
ComboBox
Asked by
Mark
Top achievements
Rank 1
Answers by
Rosi
Telerik team
emidio rana
Top achievements
Rank 1
Simon
Telerik team
Share this question
or