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

[Solved] OnClientSelectedIndexChanged event doesn't work

1 Answer 61 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
lemon
Top achievements
Rank 1
lemon asked on 17 Dec 2009, 11:18 AM
hello,

I implemented these issue:
http://www.telerik.com/community/forums/aspnet-ajax/combobox/combobox-getscriptdescriptors-and-getscriptreferences.aspx

And it works find.

Now it created a new combobox-control based on a combobox control with the hiddenfield workaround.

The event OnClientSelectedIndexChanged event doesn't work for the new combobox.

How can I handle these issue? I have to use the onchange event client side for the new combobox-control!

Best regards
lemon

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 18 Dec 2009, 03:40 PM
Hi lemon,

I modified the SelectedIndexChanged event handler, from the forum thread you mentioned, as shown below and the event fired correctly, i.e. the Alert box appeared showing the text '1':

OnSelectedItemChangedTest: function(sender, e) {
    $get(this._hiddenValueField).value = e.get_item().get_value();
    alert(1);
}

I am attaching the whole code of the control for you to compare it to yours.

All the best,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
lemon
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or