Should the grid Cancel button clear selected rows?

2 posts, 0 answers
  1. Joe Wilson
    Joe Wilson avatar
    6 posts
    Member since:
    Dec 2009

    Posted 27 Jan Link to this post

    We have several grids with batch editing on one page.

    A user noticed if you select grid rows, then click the Cancel button for canceling edits, the selected rows are cleared.

    Here's an example reproducing this issue: https://dojo.telerik.com/@joewilson0/OfiFONuF

    If I set the grid to editable: false (or "inline", "incell", or "popup"), Cancel doesn't clear rows.

    If I set the grid to editable: true, the Cancel button clears selected rows.

    Is this expected behavior?

  2. Nikolay
    Admin
    Nikolay  avatar
    328 posts

    Posted 29 Jan Link to this post

    Hello Joe,

    When the editable property is set to false the Grid does not support editing, thus, clicking on the toolbar Cancel button does not trigger anything underneath. Therefore, the described behavior is expected.

    If you would like to persist the selection of rows upon editing, sorting, paging, etc I suggest setting persistSelection property to true:

    Let me know if you have any questions.

    Regards,
    Nikolay
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Back to Top