function to Validate entire grid

7 posts, 0 answers
  1. cosmin
    cosmin avatar
    4 posts
    Member since:
    Mar 2015

    Posted 31 Mar 2015 Link to this post

    Hello, I am able to configure and use grid validation successfully. 
    However, I was wondering if there's any way to programatically check if the entire grid is valid or not.
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 02 Apr 2015 Link to this post

    Hello Cosmin,

    I am afraid that this is not possible. Validator is initialized only for the currently edited row (or cell) and it is possible to open for editing only one row (or cell) at a time.

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. cosmin
    cosmin avatar
    4 posts
    Member since:
    Mar 2015

    Posted 02 Apr 2015 in reply to Alexander Valchev Link to this post

    This might be a bit too much to ask but, do you think you can put together an example that at the click of a button adds a new row to a grid and sets the newly entered row in edit mode?
  5. cosmin
    cosmin avatar
    4 posts
    Member since:
    Mar 2015

    Posted 02 Apr 2015 in reply to Alexander Valchev Link to this post

    This might be a bit too much to ask, but do you think you can put together an example that at the press of a button, a new row is added to a grid, and that newly entered row is set to edit mode?
  6. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 06 Apr 2015 Link to this post

    Hi Cosmin,

    Basically all you need to do is to hook up to the click event of the button and call the addRow method of the Grid.

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  7. cosmin
    cosmin avatar
    4 posts
    Member since:
    Mar 2015

    Posted 08 Apr 2015 in reply to Alexander Valchev Link to this post

    Thank you for your help!
  8. Brady
    Brady avatar
    1 posts
    Member since:
    Jul 2015

    Posted 22 Jul 2015 in reply to cosmin Link to this post

    Cosmin, Peter Subev answer this question correctly.
    ref: http://www.telerik.com/forums/how-to-determine-if-there-was-validation-errors-after-calling-grid-savechanges-in-javascript
Back to Top
Kendo UI is VS 2017 Ready