[CLOSED] is my grid dirty?

  1. #1

    [CLOSED] is my grid dirty?

    Is there is simple way to check if my grid is dirty? something like grid.isDirty()? I want this to be true IFF any cell has been changed from its original value.

    I included my grid setup below.

    Thanks.
    /Z

        <ext:GridPanel 
            ColumnLines="true"
            ID="GridPanelT"
            runat="server"
            ClicksToEdit="1"
            StripeRows="true"
            EnableDragDrop="true"
            DDGroup="ddGroup"
            TrackMouseOver="true"
            Width="1000"
            AutoExpandColumn="c"
            Layout="fit"
            Border="true"
            AutoHeight="true">
            <Store>
                <ext:Store  ID="StoreT"
                            runat="server"
                            RefreshAfterSaving = "None"
                            UseIdConfirmation="true"
                            RemoteSort="false"
                            AutoLoad="false"
                            >
                    <BaseParams>
    Last edited by Daniil; Jul 21, 2014 at 4:53 AM. Reason: [CLOSED]
  2. #2
    You can probably try to use the Grid's store getModifiedRecords() method to check the length of the changed records array:

    http://docs.sencha.com/extjs/3.4.0/#...odifiedRecords
  3. #3
    Hi @Z,

    I agree with Vadym.

    Just a small note to be aware of. If you call a record's .commit(), then that record is excluded from a modified collection.
  4. #4
    Thxs. Worked fine.
    /Z

Similar Threads

  1. [CLOSED] Grid cell still shows as dirty after commiting store changes
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 13, 2013, 12:34 AM
  2. Remove red dirty flags from grid.
    By AaronB3 in forum 1.x Help
    Replies: 2
    Last Post: Jun 27, 2011, 9:47 PM
  3. How to set Grid record dirty?
    By speddi in forum 1.x Help
    Replies: 0
    Last Post: Jul 16, 2010, 8:47 PM
  4. Marking all records as dirty in a grid
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 1
    Last Post: May 10, 2010, 11:35 PM
  5. How to check if Form or Editable Grid is Dirty ?
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 1
    Last Post: Aug 31, 2009, 5:03 PM

Posting Permissions