I'm using the Grid component and following the example "Grid->Editing->Ajax Editing". It seems in edit mode the validation that set by DataAnnotation attributes on the model are in effect by highlighting the input box and showing the error message. I like to use this feature , however I'm not able to locate the area that validation is enabled in the explaining tabs below the demo!!
Please advice.
Thanks,
Reza
7 Answers, 1 is accepted
I am facing the same problem. Does anybody have any idea? I am also following the example "Grid->Editing->Ajax Editing". Please, give me link or demo project which uses DataAnnotation for client side validation while using Ajax binding to the Grid.
Thanks in advance.
Same!!!!
I am not sure what the problem is. The first post in this thread does not report any problem apart from being unable to find the code for the model. Then there are two posts telling they have the same "problem". Could you clarify what the problem is?
In our example the Model is shown in the code viewer - in the "EditableProduct(model)" tab.
Atanas Korchev
the Telerik team
I tried to enable validation as per http://demos.telerik.com/aspnet-mvc/razor/grid/editingbatch but couldn't get it working either.
I discovered after trial and error that it was because I had ".jQuery(false)" where I call ScriptRegistrar... I had this because it conflicts with something else I'm using.
Is this expected and is there a way to have validation work without the telerik jQuery reference?
I tried to enable validation as per http://demos.telerik.com/aspnet-mvc/razor/grid/editingbatch but couldn't get it working either.
I discovered after trial and error that it was because I had ".jQuery(false)" where I call ScriptRegistrar... I had this because it conflicts with something else I'm using.
Is this expected and is there a way to have validation work without the telerik jQuery reference?
The validation is always enabled. The grid needs jquery.validate.js and jquery.js to be included in order to work properly. The complete list of required JavaScript files is available here.
Regards,Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
I have face the problem regarding the Validation in MVC grid.
My Problem is
1.If i Change the order in columns my Validation is not working means i put the command button first then column is bound in that case my Validation is not working...Please help me.