What is the best way to validate a raddropdownlist? I'v looked at the _Validating Event but this appears to only fire when you select another control.
When I try the selectedvlue_changed this appears to fire when the control is being databound etc.
Any help or pointers would be great.
Thanks
2 Answers, 1 is accepted
0
Accepted
Peter
Telerik team
answered on 20 Feb 2012, 02:59 PM
Hi Karl,
Thank you for writing.
By default, WinForms controls are validated on Leave and this behavior is normal.
You can put your validation logic at the SelectedIndexChanged event, for example:
radDropDownList1.DataSource = dataTabel1;//this will fire SelectedIndexChanged event with Selectedindex = 0
radDropDownList1.SelectedIndexChanged+= radDropDownList1_SelectedIndexChanged;//subscribe for event after the databinging