About Store.rejectChanges method

  1. #1

    About Store.rejectChanges method

    Hi,

    I have a problem about Store.rejectChanges. Does Store.rejectChanges only use with GridView like mvc.ext.net uses it? Can it be used with Formpanl? And how? I trie'd use this method as example, but failed. All field changed didn't reject.

    Anyone can give me a example? Thanks alot.

    By the way, I found a bug in mvc.ext.net. When I tried to delete a customer in 'Customer details' page, a exception throwed. :)
    Last edited by geoffrey.mcgill; Feb 22, 2011 at 4:34 AM.
  2. #2

    RE: About Store.rejectChanges method

    Hi,

    The FormPanel doesn't automatically load/save data from/to the store. If you want to load original data from store to the form's fields then load record again
    #{FormPanel1}.getForm().loadRecord(record);
  3. #3

    RE: About Store.rejectChanges method

    Thanks, vladimir. It's solved. :)

    I found an other bug when I review the source of mvc.ext.net. In code file DataController.cs, the function "GetCustomers" uses sort and dir parameter with LINQ's OrderBy function to implement sort of data. But OrderBy doesn't support sort data by dynamic string. So in fact this call is no any use to data source!
    Maybe my understand of LINQ is error, or Coolite has more better method on uses LINQ? Expect a more practical example. :)

Similar Threads

  1. Replies: 5
    Last Post: Dec 13, 2012, 8:27 AM
  2. [CLOSED] store.insert method + store page size problem
    By mcfromero in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 12, 2012, 6:34 AM
  3. Replies: 2
    Last Post: Jun 06, 2012, 8:27 PM
  4. [CLOSED] Method to clone store?
    By cmack in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 13, 2011, 9:53 PM
  5. [CLOSED] .rejectChanges not removing an added row
    By peter.campbell in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 27, 2011, 3:15 PM

Posting Permissions