FieldValidator for radlistbox

2 posts, 0 answers
  1. Keven
    Keven avatar
    17 posts
    Member since:
    Sep 2010

    Posted 01 Oct 2010 Link to this post

    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.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Oct 2010 Link to this post

    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:

  3. DevCraft R3 2016 release webinar banner
Back to Top