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

Problem with Grouping

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sathya
Top achievements
Rank 1
Sathya asked on 10 Sep 2008, 09:12 AM

When i add a new item in the Data Table, the newly added item is added as the last item in the list. But what i require is, the newly added item should be added as the first item in the list.

The same thing happens in case of grouping too....
Grouping order should be reversed. Latest item should be on top of the list. Currently the oldest item is first item in the grouping.


Can you kindly help in accomplishing this task...


Thanks,
K.Sathya

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 15 Sep 2008, 05:57 AM
Hello Sathya,

By default, the control will insert the new record in the last position in the source table. While this behavior cannot be altered, one possible alternative in this case would be to swap the rows in the control after an insert operation - the last row in the underlying dataTable can be swapped with whichever row you would like to host the newly added one. I hope that this is a suitable option for you.

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Sathya
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or