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

FieldValidator for radlistbox

1 Answer 51 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Keven
Top achievements
Rank 1
Keven asked on 01 Oct 2010, 03:55 PM
I have a RadListBox in a radgrid with the editformtype template and I want to validate that the RadListBox have at least one item. Is there a way to validate that with a FieldValidator.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Oct 2010, 07:47 AM
Hello Keven,


You can use the built in ASP.NET validation with RadListBox.  To validate for selected item of a listbox, just specify the ID of the listbox in the ControlToValidate property of the RequiredFieldValidator. Validation checks to see if there is at least one selected item.

For more information:
http://www.telerik.com/help/aspnet-ajax/listbox-validation.html

Thanks,
Princy.
Tags
ListBox
Asked by
Keven
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or