Command Item Save Changes OnClick event

4 posts, 0 answers
  1. Christian
    Christian avatar
    1 posts
    Member since:
    Mar 2013

    Posted 03 Feb 2016 Link to this post


    I need to find a way to get the Command Item "Save Changes" Onclick event on the server side. So far i can only capture the event on the ItemCommand event but there is no way of discerning when it comes from the Save changes button.

    The long story:

    I have a grid that populates with a read only view. I added a template column with a ComboBox. Based on the selection of that ComboBox I will issue an insert command to a separate table.

    I was hoping that the built in functionality of the command items would let me override the Save Changes event so I can iterate through all the RadGrid.SelectedItems and do my inserts.


    I know I can do this using a custom button, but i really hoped there would be some built in functionality for this.

    Is there a way of capturing or overriding that event?


  2. Eyup
    Eyup avatar
    3826 posts

    Posted 08 Feb 2016 Link to this post

    Hi Christian,

    If you are using Batch editing, Save command should be initiated only from client-side:

    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
  3. Virgil Rodriguez
    Virgil Rodriguez avatar
    82 posts
    Member since:
    Oct 2008

    Posted 23 Oct 2017 in reply to Christian Link to this post

    When you click the "Save changes" button during Batch Edit of a RadGrid, you can catch the event at the ItemCommand event as CommandName="Update".

    The "Cancel changes" button can be caught in the same way and has the CommandName="RebindGrid"

    This is as of Telerik Version R3 2016.


  4. Eyup
    Eyup avatar
    3826 posts

    Posted 26 Oct 2017 Link to this post


    Another approach to achieve this is to use the dedicated built-in BatchEditCommand event handler:

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top