Skip to content

Get row id of igx grid

New Discussion
Silvia Ivanova
Silvia Ivanova asked on Aug 18, 2021 8:47 PM

Hello,

I have a igx grid with editable rows. When cells from a row are edited I want to update my SQL database with the new values. Is there a row Id or something like that, so that I know which rows are edited?

Sign In to post a reply

Replies

  • 0
    Viktor Kombov
    Viktor Kombov answered on Aug 18, 2021 8:47 PM

    Hello Silvia,

    Thank you for posting in our community.

    You can use rowEditDone or cellEditDone events of IgxGrid which return the rowID of the edited record.

    I have created a small sample demonstrating how to edit remote records using cellEditDone event:

    HTML

    
    

    TYPESCRIPT

     public cellEditDoneHandler(args: IGridEditDoneEventArgs) {
            const fieldName = args.column.field;
            this.http.put(`${this.url2}/${args.rowID}`, { [fieldName]: args.newValue })
     }

    Please test the sample on your side and let me know whether you find it helpful.

    Additionally, you can also use the Batch Editing feature of the IgxGrid for editing of remote data. More information about it can be found here.

    Please let me know if you have any further questions and concerns.

    Regards,
    Viktor Kombov
    Entry Level Software Developer
    Infragistics, Inc.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Silvia Ivanova
Favorites
0
Replies
1
Created On
Aug 18, 2021
Last Post
4 years, 12 months ago

Suggested Discussions

Created by

Created on

Aug 18, 2021 8:47 PM

Last activity on

Feb 12, 2026 7:35 PM