Hi,
I have a form that has a number of RadComboBox'es, and selectively add a javascript client event to some comboboxes.
To put it simple..:
ASPX:
javascript:
However when I do some selection change to the combobox in the browser, the item.ComboBox returns 'undefined'.
What else do I need to do?
I have a form that has a number of RadComboBox'es, and selectively add a javascript client event to some comboboxes.
To put it simple..:
| C#: { |
| var cb = RadComboBox1; |
| if (some_condition == true) |
| cb.OnClientSelectedIndexChanged = "OnClientSelectedIndexChanged"; |
| } |
ASPX:
| <telerik:RadComboBox ID="RadComboBox1" runat="server" Width="200px" |
| MarkFirstMatch="true" HighlightTemplatedItems="true" |
| DataTextField="Text" DataValueField="ID" ItemRequestTimeout="500" |
| Skin="Vista"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </telerik:RadComboBox> |
javascript:
| function OnClientSelectedIndexChanged(item) |
| { |
| var combo = item.ComboBox; |
| alert(combo.GetText() + ' ' + combo.GetValue() + ' - ' + combo.ClientID); |
| } |
However when I do some selection change to the combobox in the browser, the item.ComboBox returns 'undefined'.
What else do I need to do?