Radgrid batch editing manual trigger

2 posts, 0 answers
  1. h
    h avatar
    1 posts
    Member since:
    Aug 2011

    Posted 04 Feb Link to this post



    We have two grids which are parent and child. So one selection of the row in the parent grid gets the corresponding rows for the child grid. 

    So having the inline editing enabled using the click of double click doesn't seem to work since the autopostback will turn off the inline editing.

    So the solution that we came up for this issue is to have a button in the row of each record that triggers inline editing. 

    Is that possible?


    We also have implemented a page level save or cancel buttons so is it possible to remove the Save, delete cancel changes buttons on the grid?

  2. Attila Antal
    Attila Antal avatar
    571 posts

    Posted 07 Feb Link to this post


    Yes, it can be achieved. Place a button in a cell and attach the click event handler to that. When the button is clicked, open the current row or cell for editing using the Batch Editing Client-side API.

    It is worth checking out the Category: Traversing article describing a lot of useful methods, more specifically the .closest() method. This will help you find the current row from the button's click event.

    Although you must know that the Batch Editing is a Client-Side functionality of the Grid, a PostBack can interrupt it. So if using this edit mode, I suggest that you try avoiding PostBacks and make AJAX requests instead, they will not reload the entire page nor interrupt client-side code.

    Check out the ajaxRequest(arguments) and ajaxRequestWithTarget(eventTarget, eventArgument) articles for more information.

    Kind regards,
    Attila Antal
    Progress Telerik

    Get quickly onboarded and successful with UI for ASP.NET AJAX with the Virtual Classroom technical trainings, available to all active customers. Learn More.
Back to Top