All rows as selected automatically.

2 posts, 1 answers
  1. Daniel
    Daniel avatar
    7 posts
    Member since:
    Jul 2016

    Posted 25 Aug Link to this post


    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?

  2. Answer
    Georgi
    Admin
    Georgi avatar
    160 posts

    Posted 29 Aug Link to this post

    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.
Back to Top