Rad Grid Batch Editing Sorting Issue

3 posts, 0 answers
  1. Rahul
    Rahul avatar
    27 posts
    Member since:
    Jul 2015

    Posted 23 Feb Link to this post

    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. Rahul
    Rahul avatar
    27 posts
    Member since:
    Jul 2015

    Posted 25 Feb in reply to Rahul Link to this post

    Hi,

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

    Thank you.


  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eyup
    Admin
    Eyup avatar
    3012 posts

    Posted 26 Feb Link to this post

    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
Back to Top