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

1 posts, 0 answers
  1. Koray
    Koray avatar
    1 posts
    Member since:
    Aug 2012

    Posted 20 Aug 2012 Link to this post

    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.

Back to Top