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

[Solved] Angular Grid Integration

3 Answers 124 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 09 Apr 2015, 03:28 PM

Hi

As per your example for the grid coded in angular:

http://dojo.telerik.com/IkONO

 

We have enhanced this for the columns to be reorderable and in this event store them in the database.

In the example we are logging the order of the columns to the console, which remains the same never the less the columns are reordered by dragging.

How can we get an updated column order?

 

Many thanks

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 13 Apr 2015, 07:40 AM
Hello Markus,

See the updated example: http://dojo.telerik.com/@valchev/Oyome

The reorder event is preventable, which is why the columns are not yet updated when it fires. You should execute the event handler with a timeout and use the getOptions method of the Grid to retrieve the options.

Regards,
Alexander Valchev
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 20 Apr 2015, 12:45 PM

Hi Alexander

Thanks for the update. As a followup, can you explain the purpose of the initial "columnReorder" function? What is the purpose if not for it to show an updated column order?

Many thanks

0
Alexander Valchev
Telerik team
answered on 22 Apr 2015, 08:45 AM
Hello Markus,

The event is executed right before the actual change is performed because it is possible to prevent the event and cancel the reorder action.

In the event parameters you will find information about the column and its old and new index.

Regards,
Alexander Valchev
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
Alexander Valchev
Telerik team
Markus
Top achievements
Rank 1
Share this question
or