Results 1 to 6 of 6

Thread: Api destroy without idProperty - grid problem

  1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    57

    Default Api destroy without idProperty - grid problem

    I have a grid with a store.

    I'm using a JsonReader on this store. The Reader doesn't have a idProperty.

    The problem is when I remove a record from the grid and try to save the store, the removed record is not sent because I didn't set the idProperty.

    If a set the idProperty, it's sent. The problem is I can't use idProperty, in an especify case.

    How can I send a field value in this case without idProperty?

    []'s

  2. #2
    Sencha User
    Join Date
    Feb 2009
    Posts
    57

    Default

    someone?

    []s

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    The record will be send if you set record.phantom=false.

  4. #4
    Sencha User
    Join Date
    Feb 2009
    Posts
    57

    Default

    Hum, but if I remove the record, I still can set the phantom? The record still stay there even when I delete it?

    []s

  5. #5
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    It will be stored in the 'removed' property of the writer as long as you set phantom to false before you delete the record.

  6. #6
    Sencha User
    Join Date
    Feb 2009
    Posts
    57

    Default

    Thanks, I think this will solve my problem.

    I'll try later and post the result.

    []s

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •