Results 1 to 4 of 4

Thread: How update a tree node record?

  1. #1
    Sencha User nomack84's Avatar
    Join Date
    Oct 2007
    Location
    Quito, Ecuador
    Posts
    272
    Answers
    2
    Vote Rating
    210
      0  

    Default Unanswered: How update a tree node record?

    Hello everyone! I have a question from a long time. I'll try everything to solve the problem, but without success, so I came here to ask some help. The problem maybe is simple, but I can't find the solution. I have a TreePanel that represent a menu structure for my app. I easy add/remove menu items in the tree, but sometime I need to update a data for a menu, the name for example. With a normal store, in a grid for instance, this is quite easy, but when using a Tree, or TreeGrid, I can't see how to do this. When I change the data and execute the node's save() method, the tree is broken, with a new node, instead of updating the one I want. Does anyone here try to do this successfully? Thanks in advance for any reply.
    Ext is terrific!!

  2. #2
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,042
    Answers
    33
    Vote Rating
    182
      0  

    Default

    There is no docs showing how this would work. Try responding from your server with the entire node/record.

  3. #3
    Sencha User nomack84's Avatar
    Join Date
    Oct 2007
    Location
    Quito, Ecuador
    Posts
    272
    Answers
    2
    Vote Rating
    210
      0  

    Default

    Quote Originally Posted by mankz View Post
    There is no docs showing how this would work. Try responding from your server with the entire node/record.
    Hi mankz Thanks for the answer. I have made this same questions many times here, and you are the first in give me a response. I try everything but without success. I try from sending the full node, to sending parts of it, even sending some success:true, and the node, but nothing work. In a grid store, is pretty easy, and the first time I saw the example with the grid, I think it would be the same with the tree, but I was mistaken. It's very sad, because it would be great if work.
    Ext is terrific!!

  4. #4
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,042
    Answers
    33
    Vote Rating
    182
      0  

    Default

    What if you include the entire request object as your response? I believe Ext includes some NodeInterface properties too which I think get lost in the process. I think that helped in my case...

Posting Permissions

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