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

[Solved] Required Field Validation

1 Answer 145 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 26 Jul 2009, 10:16 AM
I really love the red border and little exclamation image that is display by the InputManager and was hoping that there is a simpler way to get this for required fields when a grid is in edit mode.

I have followed the example outline at http://demos.telerik.com/aspnet-ajax/input/examples/radinputmanager/dynamicinputfiltersettings/defaultcs.aspx?product=grid and got it working. I just find it a bit of a drag because I have declared all my columns using telerik:Gridxxx and I now have to re-declare all my controls again and the wrapping table for formatting purpose just so I can get the InputManager to "hijack" a few textboxes.

Am I missing something is there a simpler way?


Thanks for your help

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 29 Jul 2009, 10:16 AM
Hi Chris,

Basically, this is one possible option to handle the required functionality.
The other option would be to dynamically trap the change of the value in the input control, and set the "invalid" style. However, I believe that the first approach, which is followed in the example in question is the more straightforward solution to the requirement at hand.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or