Validation when saving

3 posts, 0 answers
  1. Juan Jose
    Juan Jose avatar
    45 posts
    Member since:
    Jul 2013

    Posted 18 Mar 2016 Link to this post

    Hello,

    I noticed that the grid doesn't perform validation when the user click on the save button, when the grid has incell editing activated. The validation only occurs when the user modifies one cell.
    If you create a new row and then click the save button, you save the row without validation.

    You can see the problem here, just add row and then click save:
    http://dojo.telerik.com/UNIgi

    look at the field "productName".

    There is any way to solve this?

    Thank you.

  2. Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    1274 posts

    Posted 22 Mar 2016 Link to this post

    Hello Juan Jose,

    The described undesired behavior is a limitation of the validation, caused by the fact that the validation in batch mode editing is an UI instead of data item validation.

    To make sure all fields are validated you can either use "incell" edit mode, or handle the save event and perform the desired validation in the corresponding function.

    You can also request a new feature via our user voice platform:

    http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback

    Regards,
    Dimiter Topalov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Juan Jose
    Juan Jose avatar
    45 posts
    Member since:
    Jul 2013

    Posted 28 Mar 2016 Link to this post

    Hello Dimiter,

    first thank you for your reply. I can't use the "incell" edit mode on this scenario, so I will handle the save event in order to get the desired behaviour.

Back to Top