This is a migrated thread and some comments may be shown as answers.

Dynamic loading of treenodes with more then one (id) paramters

0 Answers 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Koray
Top achievements
Rank 1
Koray asked on 20 Aug 2012, 09:51 AM
Hello,

in my scenario i need to get data from server every time when user expands the node.
Based on this working example i could manage to add some additional "static" parameters to the request by using "parameterMap". Those are sent while each expand-request and handled by the server.

var dataSource = new kendo.data.DataSource({
     transport
: {
       read
: "Catalog/Titles",
       parameterMap
: function(data, type) {
         
return {
             request_goes_to : responsible_server_control_id
          }
       
}
     
}
 
});

But what i need to do is:
Each node must hold some values apart from their ids which must be sent to server while expanding these nodes.
Is there a way to force nodes to hold other values than text and id? In my application it is not possible to populate childs of an object only using its id.

thanks in advance,
Koray.

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Koray
Top achievements
Rank 1
Share this question
or