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

WebService Load with Server Side Refresh

3 Answers 70 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
David Beck
Top achievements
Rank 1
David Beck asked on 11 Mar 2011, 08:51 PM
Hello,

I have a Treeview that is loadonDemand via a webservice and works fine. I have PersistLoadOnDemandNodes Set to TRUE as i need to do some server side things when a user clicks the Node.

All works fine separately but not together.

If a user clicks the expand Icon the Nodes are loaded just fine.
If the User click the Node my server side code renders fine.

However is a user doesnt expand and just click the node the Server side code is execute and you see the Webservice load the Nodes and then they disappear.

I think this has to do with the AjaxPanel its wrapped in from the Masterpage. Any ideas

3 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 12 Mar 2011, 03:00 PM
Hi David,

I tried the scenario that you describe in the following way:
I expand the tree using client-side code (OnClientNodeclicking event) and at the same time use a server-side event (OnNodeClick). In the case when I use both events the page will inevitably postback and the expanded nodes will not be visible. However, when I use each of the events separately both work fine. To avoid this behaviour you can explicitly set the ExpandMode property of RadTreeNode either to "ClientSide" or to

"ServerSideCallback" as described in this help article. Is this your scenario or am I missing something? In case this does not help, you can open a support ticket and send us a sample project demonstrating the issue.


Greetings,
Kate
the Telerik team

Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
David Beck
Top achievements
Rank 1
answered on 14 Mar 2011, 04:03 PM
I was hoping there was a way to keep the ExpandMode as a Webservice.

Basically all i want is when the user clicks the NODE it to ALSO call the webservice to expand and build the child items.. is this possible?
0
Kate
Telerik team
answered on 17 Mar 2011, 11:36 AM
Hi David Beck,

Unfortunately you can not achive this from the server. I believe that the following help article will bring more light to the matter.

Kind regards,
Kate
the Telerik team
Tags
TreeView
Asked by
David Beck
Top achievements
Rank 1
Answers by
Kate
Telerik team
David Beck
Top achievements
Rank 1
Share this question
or