Problem with Grid Selection Persistence, key not found

4 posts, 0 answers
  1. Frédéric.R
    Frédéric.R avatar
    7 posts
    Member since:
    Feb 2015

    Posted 24 May 2017 Link to this post

    Hi, 

    Kendo UI v2017.2.504 

    I got java exception when restoring, changing selection : unable to get property mykeyfield...

    I not sure, but it seems that in kendo.grid.js : string selector ':not(.k-grouping-row,.k-detail-row)' should be replaced with ':not(.k-grouping-row,.k-detail-row,.k-group-footer)' in _restoreSelection and selectable.change functions.

    otherwise it search dataitem associated to the footer and it reaches a dead end.

    Can you please confirm ?

    Thank you in advance.

     

  2. Stefan
    Admin
    Stefan avatar
    2913 posts

    Posted 26 May 2017 Link to this post

    Hello Frederic,

    Could you please advise the scenario in which the mentioned error occurs.

    In our demo for persisting the state, the selection is not persisted as it is a CSS visualisation.

    As for the new persistSelection property, I was not able to reproduce the issue:

    http://demos.telerik.com/kendo-ui/grid/selection

    Also, the mentioned selectors are used in methods with different names that the ones provided.

    If possible please provide a runnable example reproducing the issue and I will gladly assist.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Frédéric.R
    Frédéric.R avatar
    7 posts
    Member since:
    Feb 2015

    Posted 29 May 2017 Link to this post

    I do not have time to create a simple example or to find the reason why a call to these methods occurs.

    But we can assume that the code is wrong because it does not ignore the grid group footer... !?

    During execution it searches the data item associated to the group footer...that will never exist.

    Thank you in advance.

     

  4. Stefan
    Admin
    Stefan avatar
    2913 posts

    Posted 30 May 2017 Link to this post

    Hello Frederic,

    I will forward this to our developers' for further investigation.

    If possible, please provide a scenario with small details in which the issue occurs, as this will help during the investigation.

    Thank you in advance.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top