1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    10
    Vote Rating
    1
    qtalen is on a distinguished road

      0  

    Default how to add additional parameters when the tree node expand?

    how to add additional parameters when the tree node expand?


    hi there:
    Recently i am using the ext 4.0.7, and i know that when a node expand, the 'node' param will be send to the server.
    now my question is that can i pass addtional parameters not only 'node' but also other properties of the node?
    for example : a json of my tree node is : {"id" : 1, "text" : "node1", "url" : "http://www.balala.com"}, when this node expande, can i pass parameters like : node=1&url=http://www.balala.com
    thx for ur help

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,677
    Vote Rating
    749
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      1  

    Default


    You can listen to the beforeload event and add in parameters to the operation request.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    16
    Vote Rating
    0
    ju187 is on a distinguished road

      0  

    Default


    Could you give some more details? Thanks a lot

  4. #4
    Sencha User
    Join Date
    Sep 2010
    Posts
    10
    Vote Rating
    1
    qtalen is on a distinguished road

      1  

    Default


    thanks a lot! I finaly figure it out with ur advise.
    Ext.tree.Panel has a event named beforeload and will pass a argument named 'operation' into the callback function.
    In this argument, it has a property named 'params', witch include the parameters will pass to the server.
    and it has another property named 'node', witch is the tree node we just clicked.
    what we have to do is find the parameters from node and set them into the params property, done!

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar