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

Column header dropped and remove event (when perform grouping)

4 Answers 210 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Poh Joon
Top achievements
Rank 1
Poh Joon asked on 26 Sep 2014, 06:33 AM
I need to perform some javascript action whenever user dropped a column header or delete a column header. How do I detect? Thanks.

4 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 29 Sep 2014, 08:57 AM
Hi Poh,


There are no specific group/ungroup events in the Grid. The recommended approach would be to bind to the dataBound event and retrieve the current group state of the dataSource.
E.g.
function onDataBound(e){
    var group = this.dataSource.group();
}

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Poh Joon
Top achievements
Rank 1
answered on 01 Oct 2014, 03:03 AM
Hi

I've code it as client side grid, once it pull all data from server for the first time, all sorting, filtering, grouping was done at client side (no pulling data again form server). I have try dataBound but it doesn't get triggered once user dropped the column header or delete the column header.
0
Poh Joon
Top achievements
Rank 1
answered on 01 Oct 2014, 05:37 AM
It seem change event did triggered, thanks.
0
Dimiter Madjarov
Telerik team
answered on 01 Oct 2014, 08:10 AM
Hi Poh,


Thanks for the update. I wish you a great day!

Regards,
Dimiter Madjarov
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
Poh Joon
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Poh Joon
Top achievements
Rank 1
Share this question
or