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

Remove a row in grid without triggering data bound and detail init

1 Answer 331 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nisarg
Top achievements
Rank 1
Nisarg asked on 28 May 2015, 03:06 PM

Hi there,

 I am using detail init event to create a grid inside a grid row. When I remove a data item(row) from the inner grid, all the expanded rows collapse.

Is there a way around this?

 By the way, I am using this method to remove the row: 

    ginst.dataSource.remove(ginst.dataItem(imgele.closest('tr')));

 

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 01 Jun 2015, 07:59 AM

Hello Nisarg,

 

I am afraid that removing an item from the DataSource will cause the redraw of the widget , which in case will fire the dataBound event.  You can however persist the expanded rows as explained here:

 

http://docs.telerik.com/kendo-ui/web/grid/how-to/persist-expanded-rows

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Nisarg
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or