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

[Solved] Rad ComboBox OnClientSelectedIndexChanged Event check seletedIndex to Submit() form

4 Answers 591 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Trong
Top achievements
Rank 1
Trong asked on 03 Jun 2008, 08:34 AM
Hi all,
I've problem with ComboBox when I change selectItem  from combobox. I want to check selectedIndex if value >0 then submit form else not submit form.
Please help me!

4 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 03 Jun 2008, 12:16 PM
Hi Trong,

You could hook to the OnClientSelectedIndexChanging client event of RadComboBox, check the condition in the event handler and cancel the event if required. Further, if you had subscribed to the server OnSelectedIndexChanged event, a postback will be made in case you have not canceled the [...]Changing event.

More information about the needed client-side event you could find here: OnClientSelectedIndexChanging.

Kind regards,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Simon
Telerik team
answered on 04 Jun 2008, 01:17 PM
Hi Trong,

You can access the Item that is about to be selected by calling eventArgs.get_item() in the OnClientSelectedIndexChanging event handler.

Another approach for accomplishing the same goal is by using ASP.NET validation as shown in our online example RadComboBox Validation.

Best wishes,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Trong
Top achievements
Rank 1
answered on 05 Jun 2008, 05:53 AM
Tags
ComboBox
Asked by
Trong
Top achievements
Rank 1
Answers by
Simon
Telerik team
Trong
Top achievements
Rank 1
Share this question
or