Skip to content

Infragistics Community Forum / Web / Ignite UI for Angular / Is there a way to check if the grid is pristine programatically

Is there a way to check if the grid is pristine programatically

New Discussion
Shobhana Suara
Shobhana Suara asked on May 6, 2020 6:25 PM

Hello,

I am using Igx data grid. I want to know is there any way to check if the grid is untouched(pristine) / touched (dirty).

Urgent issue. Please reply asap

Sign In to post a reply

Replies

  • 0
    Nicholas Parr
    Nicholas Parr answered on May 5, 2020 8:13 PM

    Hello Shobhana,

    In order to better assist you I would appreciate some clarification on what you mean by the grid being clean vs dirty.  For example, does filtering or sorting the grid count as making the grid dirty?

    • 0
      Shobhana Suara
      Shobhana Suara answered on May 6, 2020 1:28 PM

      when i edit the grid than its dirty (touched) and when i do not touch the grid than it is pristine.

      • 0
        Nicholas Parr
        Nicholas Parr answered on May 6, 2020 6:25 PM

        The onCellEdit event has oldvalue and new value properties which you can use to determine when a grid is no longer clean since the value will have changed and so fired the event.

        Sample code:

        public handleCellEdit(event: IGridEditEventArgs) {
                console.log("old value " + event.oldValue + " new value " + event.newValue);
        }
        

        Documentation links:

        onCellEdit            properties

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Shobhana Suara
Favorites
0
Replies
3
Created On
May 06, 2020
Last Post
5 years, 11 months ago

Suggested Discussions

Created by

Created on

May 6, 2020 6:25 PM

Last activity on

Feb 25, 2026 9:36 AM