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

[Solved] Required Field In Grid Not Working.

5 Answers 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ganesh
Top achievements
Rank 1
Ganesh asked on 18 Feb 2011, 03:39 PM
Hello,

I have a sample project attached. I have a simple grid with id and name bound to it. I try to make the fields mandatory, but it doesn't show any error and it just posts the whole data that was give to the grid. Any help would be appreciated.

Thanks in advance.

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 18 Feb 2011, 03:45 PM
Hi Ganesh,

 The problem is that the ScriptRegistrar is before the Grid. This is not supported - the ScriptRegistrar must be after all Telerik UI components (including the grid). I am sending the updated project.

Greetings,
Atanas Korchev
the Telerik team
0
Ganesh
Top achievements
Rank 1
answered on 18 Feb 2011, 04:31 PM
I have put the script.registrar in the bottom, but the validation doesn't seem to work.

In my application I have a master page where I will be using it after all the place holders.

Thanks for your quick response.
0
Atanas Korchev
Telerik team
answered on 18 Feb 2011, 04:42 PM
Hello Ganesh,

 Did you check the attached project? It is working ok at my side.

All the best,
Atanas Korchev
the Telerik team
0
Ganesh
Top achievements
Rank 1
answered on 18 Feb 2011, 04:47 PM
Hello Atanas Korchev,

I have modified the second project, I have added the script registrar in the end, but it doesn't do the validation.
I need to group the files which I have given. The sample you have sent works but if I add the grouping to that registrar it simply doesn't do the validation.

Thanks

0
Atanas Korchev
Telerik team
answered on 21 Feb 2011, 09:07 AM
Hi Ganesh,

 I downloaded your last attachment and saw that validation actually works in that project. Here is a video which shows that: http://screencast.com/t/2NdSpcWpe. What am I missing?

Regards,
Atanas Korchev
the Telerik team
Tags
Grid
Asked by
Ganesh
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Ganesh
Top achievements
Rank 1
Share this question
or