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

Validation not working in Grid

3 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 17 Jul 2014, 02:55 PM
Hi,

I'm using a grid to edit a model with a Required attribute on string property. The problems is that the validation is always false which prevent the user from saving. I have attach the relevant files and would appreciate any help you could provide. 

Thanks,







3 Answers, 1 is accepted

Sort by
0
Alexandre
Top achievements
Rank 1
answered on 17 Jul 2014, 06:07 PM
Here some additionals informations about this issue. When you click the update button the action method on the controller is call but all the properties of the entity are set to the default value in this case null. In addition on the client side the value of $("#TeamMembersGrid").data("kendoGrid"); is always undefined.
0
Alexandre
Top achievements
Rank 1
answered on 17 Jul 2014, 07:22 PM
Strange I found out that if I remove the Kendo UI Window from that page the grid work normally. I need both of them to work on the same page. Any idea?
0
Alexander Popov
Telerik team
answered on 21 Jul 2014, 08:43 AM
Hello Alexandre,

I am afraid that the attached code snippets do not reveal what exactly is causing this. Could you please provide a runnable sample project where the issue is reproduced? This would help us pinpoint the exact reason for this behavior and advise you further.

Regards,
Alexander Popov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Alexandre
Top achievements
Rank 1
Alexander Popov
Telerik team
Share this question
or