Validation textboxes in RadGrid FormTemplates

2 posts, 0 answers
  1. Intro
    Intro avatar
    18 posts
    Member since:
    Jan 2007

    Posted 11 Jan 2010 Link to this post

    Hello,

    We have a grid with several tabs in the edit form and each tab in turn contains other grids. Each grid in the tabs contain custom edit forms. Some of the textboxes in these forms are mandatory. Furthermore, some of the mandatory textboxes are numeric which should have values bigger than 0.

    We would like to group the textboxes in the edit forms by their IDs and validate the required ones (both numeric and plain textboxes) and numeric ones seperately. Is such a scenario supported by RadInputManager ?

    Thanks,
    Oner
  2. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 14 Jan 2010 Link to this post

    Hi Oner,

    This scenario is possible and in order to achieve it you should use the NumericTextBoxSetting and the TextBoxSetting features of the input manager. Both have a Validation-IsRequired property which should be set to true. The ID's of the simple text boxes should be specified as target control IDs for the TextBoxSetting and the ID's of the numeric boxes go into the target control IDs of the NumericTextBoxSetting.

    I hope this helps.

    Best wishes,
    Tsvetoslav
    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.
Back to Top