Validation not working in Grid

4 posts, 0 answers
  1. Alexandre
    Alexandre avatar
    20 posts
    Member since:
    Apr 2014

    Posted 17 Jul 2014 Link to this post

    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,







  2. Alexandre
    Alexandre avatar
    20 posts
    Member since:
    Apr 2014

    Posted 17 Jul 2014 Link to this post

    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.
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Alexandre
    Alexandre avatar
    20 posts
    Member since:
    Apr 2014

    Posted 17 Jul 2014 Link to this post

    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?
  5. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 21 Jul 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET MVC is VS 2017 Ready