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

[Solved] ColumnReorder Event does not fire

3 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 23 Jan 2015, 03:59 PM
Hi When I reorder the column with the function reorderColumn(x, y) the event columnReorder does not fire...

When I hide the column with hideColumn(x) then the event columnHide does fire

http://dojo.telerik.com/IGaHe/2

Seems like a bug to me

Many thanks

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 26 Jan 2015, 12:13 PM

Hello Markus,

The behavior that you observe is expected. Kendo UI adopted the practice of not triggering an event when the corresponding method is called. If you want to trigger the event, you can do it manually with the trigger() jQuery method.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Markus
Top achievements
Rank 1
answered on 28 Jan 2015, 08:20 AM
Ok

So the reorder event is not triggered when I use its function.

But why is the hide event triggered then?

To recreate what I mean open my example in chrome (or whatever has a console), then click on "reorder columns". This will call

grid.reorderColumn(1, grid.columns[0]);
grid.hideColumn(1);

...which will trigger the hide event but not the reorder event.

Thanks
0
Kiril Nikolov
Telerik team
answered on 28 Jan 2015, 12:43 PM

Hello Markus,

You are right that this is not the case for the hideColumn() event, but this is need for internal API update, so this is an exception from the rule, that currently cannot be worked around.

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
Markus
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Markus
Top achievements
Rank 1
Share this question
or