Also, I noticed when I don't set a default sort, then sort the grid on the client side I'm getting the same behavior. The insert it happening wherever the last item was put into the collection.
Thanks,
Karen
6 Answers, 1 is accepted
Any help would be appreciated...
Thanks,
Karen
RadGridView has special UI for adding new row, but it is over the rows just below the header row. You can easily show this row by setting RadGridView.ShowInsertRow = true. Unfortunately there is no way to move this row after the last item.
Let me know if you need further assistance.
Nedyalko Nikolov
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
Thanks,
Karen
Sorry for the late reply.
Unfortunately there is no way to this out-of-the box. There is a possible solution, which is a little bit tricky.
The problem comes from the fact that RadGridView reacts on every NotifyCollectionChanged with respect to sorting and grouping, therefore item is displayed on its correct position (according to sorting) (indeed this could looks like random position but it is not). Keeping this in mind you can workaround this by sorting your data manually and use RadGridView just to show current sorting (without RadGridView to be sorted). Then you will achieve the desired "insert" behavior.
For such example you can take a look at this online help topic.
Let me know if this doesn't help.
Nedyalko Nikolov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Thank you for responding. I understand what you're saying and you're right, the new row isn't randomly inserted. It would just appear to be this way to the user. As of right now, they're ok with it. I'll keep in mind yoyr suggestion and know that I have a workaround if the user's aren't happy with it.
Thanks again,
Karen