[CLOSED] How to loop through TreePanel Nodes and read changes made in client side in codebehind? Nodes are added in codebehind

  1. #1

    [CLOSED] How to loop through TreePanel Nodes and read changes made in client side in codebehind? Nodes are added in codebehind

    How can i loop through TreePanel Nodes and read changes made in client side in codebehind? The nodes are added in code behind not in markup.
    Last edited by Daniil; Jul 23, 2013 at 12:52 PM. Reason: [CLOSED]
  2. #2
    Hello!

    Quote Originally Posted by randhir View Post
    How can i loop through TreePanel Nodes and read changes made in client side in codebehind? The nodes are added in code behind not in markup.
    To loop through the TreePanel you should use cascadeBy method: http://docs.sencha.com/extjs/4.2.1/#...thod-cascadeBy

    To get changed data you can use
    #{TreePanelId}.getStore().getChangedData()
    Also, I hope this example will be helpful: https://examples2.ext.net/#/TreePane...d/Remote_Mode/
    Last edited by Daniil; Jul 15, 2013 at 4:04 AM. Reason: {{ => {
  3. #3
    Hi,

    Just some clarification regarding this:

    Quote Originally Posted by Baidaly View Post
    To loop through the TreePanel you should use cascadeBy method: http://docs.sencha.com/extjs/4.2.1/#...thod-cascadeBy

    To get changed data you can use
    #{TreePanelId}.getStore().getChangedData()
    It is JavaScript code, not to use in code behind. @Baidaly meant that it can be used to populate extra parameters of a request to send to server.

Similar Threads

  1. Replies: 18
    Last Post: Jan 23, 2013, 3:20 PM
  2. Replies: 1
    Last Post: Apr 24, 2012, 10:27 AM
  3. Replies: 2
    Last Post: Mar 28, 2011, 9:20 AM
  4. Replies: 1
    Last Post: Aug 11, 2010, 7:32 PM
  5. Loop through TreePanel Nodes in Server Side
    By fernando6 in forum 1.x Help
    Replies: 0
    Last Post: Jun 01, 2009, 3:51 PM

Posting Permissions