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

Rad Grid Batch Editing Sorting Issue

2 Answers 186 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 23 Feb 2016, 12:48 PM

Hi,
Telerik Team,

            I am using rad grid in batch editing mode ,suppose I have added 15 new records to grid and perform sorting on any column then it will lost data(newly added records in grid). I am facing this issue please help me on same. Is there any built in sorting available for edit mode?


Thanks

2 Answers, 1 is accepted

Sort by
0
Rahul
Top achievements
Rank 1
answered on 25 Feb 2016, 02:21 PM

Hi,

Please provide your inputs on this we are still facing this issue , we are waiting for your response.

Thank you.


0
Eyup
Telerik team
answered on 26 Feb 2016, 09:40 AM
Hello Rahul,

You can use the OnUserAction event handler provided by RadGrid to alert the user that the changes will be lost:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-binding/client-side/client-data-source-binding/defaultcs.aspx?product=clientdatasource&show-source=true


Some time ago, there was only the OnCommand event handler, which could be used to cancel grid commands on client-side. This would prevent the command to post back to the server, however, some commands like PageSize, Sorting, etc. also contain client-side logic like hiding the pager item and changing the status of the sort icon in the header cell of a column. Therefore, our developers introduced this additional event handler OnUserAction, which primary goal was to provide a convenient way of canceling these commands, which have client-side logic applied in addition to the server-side event raising. It will be fired for these commands: "Page", "Sort", "PageSize", "Filter".

I hope the clarification was helpful. The one crucial difference you should note that you have to use get_actionName() instead of get_commandName().

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Rahul
Top achievements
Rank 1
Answers by
Rahul
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or