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

Validation textboxes in RadGrid FormTemplates

1 Answer 125 Views
Input
This is a migrated thread and some comments may be shown as answers.
Intro
Top achievements
Rank 1
Intro asked on 11 Jan 2010, 12:03 PM
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

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 14 Jan 2010, 12:26 PM
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.
Tags
Input
Asked by
Intro
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or