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

handle load on demand data before binding

2 Answers 49 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
mirang
Top achievements
Rank 1
mirang asked on 21 Jan 2012, 12:17 PM
I am using load on demand using WCF mechanism to bind child nodes to a node. Is there any way I can get hold of that data after it is returned from WCF service and before binding it to the client. Actually I wanted to prevent the entire list list of data from binding it to the client and keep the remaining of data in cache on the client browser. 
eg. if there are 5000 records returned from WCF service using load on demand, when the data reaches the browser, before binding it, i want to extract only 100 records from the set, bind it and then keep the remaining 4500 records on the client browser cache(variable).

Currently i believe if we are using load on demand using WCF there is no way on the client to get the data returned from WCF service and modify the collection. 

2 Answers, 1 is accepted

Sort by
0
mirang
Top achievements
Rank 1
answered on 23 Jan 2012, 01:38 PM
Any updates on this ?
0
Bozhidar
Telerik team
answered on 26 Jan 2012, 10:01 AM
Hi Mirang,

Unfortunately there isn't a way to prevent the returned nodes from being bound to the tree.

I would suggest a different approach. Just have the Service return a portion of the nodes, with a "LoadMode..." button as the last node. Clicking this node loads another portion of records and so on.

I've attached a sample page demonstrating the approach. 

Regards,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
TreeView
Asked by
mirang
Top achievements
Rank 1
Answers by
mirang
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or