How to check properties(isValid, phantom, modified) and compare updated record with previous record

  1. #1

    How to check properties(isValid, phantom, modified) and compare updated record with previous record on server side

    Hello this is my first project whit EXT.NET

    I try to modify AutoSave Exemple
    On the HandleChanges method, i want to get the Record object to check 'isValid()' 'Phantom' and 'modified' properties
    With e.DataHandler.ObjectData<TestPerson>() i can find the new values but not the previous
    How can i acces to record on Store or on gridPanel and get these values on server side?
    Thanks.
     
    protected void HandleChanges(object sender, BeforeStoreChangedEventArgs e)
        {
            ChangeRecords<TestPerson> persons = e.DataHandler.ObjectData<TestPerson>();
    
            foreach (TestPerson created in persons.Created)
            {
               //BDDCreate..
            }
    
            foreach (TestPerson deleted in persons.Deleted)
            {
                //BddDelete
            }
    
            foreach (TestPerson updated in persons.Updated)
            {
                //BDDUpdate
            }
            e.Cancel = true;
        }
    Last edited by smaoui; Oct 15, 2012 at 8:18 AM. Reason: Clarifcation
  2. #2
    We have te check All properties Client Side and than call direct method.

Similar Threads

  1. Replies: 2
    Last Post: Jan 23, 2012, 10:49 AM
  2. Replies: 16
    Last Post: May 26, 2011, 10:23 PM
  3. Data updated in store with e.record.set() is not getting reflected in grid
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 2
    Last Post: May 07, 2010, 5:16 AM
  4. [CLOSED] Adding a new Store Record - Not a Record object
    By Steve in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 15, 2009, 7:40 AM
  5. Null record check in function?
    By Tbaseflug in forum 1.x Help
    Replies: 3
    Last Post: Apr 29, 2009, 7:54 PM

Posting Permissions