This is a migrated thread and some comments may be shown as answers.

Problem with Grid Selection Persistence, key not found

3 Answers 322 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Frédéric.R
Top achievements
Rank 1
Frédéric.R asked on 24 May 2017, 09:32 AM

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.

 

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 26 May 2017, 07:37 AM
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.
0
Frédéric.R
Top achievements
Rank 1
answered on 29 May 2017, 08:08 AM

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.

 

0
Stefan
Telerik team
answered on 31 May 2017, 04:45 AM
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.
Tags
Grid
Asked by
Frédéric.R
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Frédéric.R
Top achievements
Rank 1
Share this question
or