Hi all,
Well my query is regarding the optimal use of ajax,I have to build a user control that is functioning of tree view .example
There are three pane
1.In fist pane there is a tree view
2 In 2nd pane ,contain the list that is populated on click of a node(on text click)
3 In third pane when i double click the item of second pane it should moved into 3rd pane.
4.when i clicked on the node of the tree its child should filled from the database (this is imp one as no whole page should be post back only that node part should generated here i take a help of ajax)
Any any kind of help will contribute to me.
thanks
My suggested approach will be this:
1. Send requests for data to server side via SriptMethod on page or WebMethod on ScriptService .
2. Get the data as objects to client side (It will be if you're working with JSON)
3. Handle all UI changes in client side (Fore example: expand node on callback function - after you've received data from server)
Thanks its good and will work fine i hope iam still searching for good .
what approach is better ie use a .net treeview control in update panel or make a ajax call on clicking on each node i know the 2nd one is good but i need some more facts like if i used ist one and when a node clicked event is generated then whole tree view is posted but in second one there is on demand loading
please send some more views
thanks
No comments:
Post a Comment