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

Calling a custom method after grouping by column

1 Answer 180 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kristian
Top achievements
Rank 1
Kristian asked on 23 Oct 2012, 03:05 AM
I am performing validation on missing data when loading the grid and applying a red border to a cell where the data is missing so the user can identify missing data quickly. I have my grid groupable = true so the user can group by column headers. My problem is I lose the cell border after the user drag/drops the column header into the "Drag a column header and drop it here to group by that column" area. Any ideas on what fires after the grouping is done or where I can insert a custom method to reapply my cell border. 

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 24 Oct 2012, 02:06 PM
Hi Kristian,

 

Basically there is no such Grouping event, however to achieve the desired behavior you should use the Ajax binding and the DataBound event of the Grid, which is fired after Grouping, paging and sorting to execute your custom logic. 

e.g.:

function onDataBound(e)
{
    //Execute your custom logic
}
 
$(document).ready(function() {
    $("#grid").kendoGrid({
        dataBound: onDataBound,
        dataSource: {....


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