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

All rows as selected automatically.

1 Answer 142 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 25 Aug 2017, 08:18 PM

Hi,
I'm using a kendo grid inside a bootstrap popup, and i need to select some rows. In kendo grid i use the properties "columns.Select().Width(50);" and ".PersistSelection()", when selected one row in the first page all works fine, but when i change the page, all rows in all pages are selected automatically.

¿How can i select only some rows in differents pages?

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 29 Aug 2017, 08:46 AM
Hello Daniel,

In order to persist selection it is necessary to specify an identifier for the model, since the grid saves the state for each data item by their id.

e.g.
.DataSource(dataSource=> dataSource
.Ajax()
.PageSize(10)
.Read(read=> read.Action("GetRateListFilters", "RateList",new { parameters=ViewBag.parameters}))
.Model(model=> model.Id(x => x.Id))
)
 

Regards,
Georgi
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
Daniel
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or