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

[Solved] Change load on demand behaviour clientside

2 Answers 107 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Relatics Systeembeheer
Top achievements
Rank 1
Relatics Systeembeheer asked on 16 Jan 2008, 03:29 PM
Hi,

I have the following problem:

Scenario 1:
In my onload procedure I create a radtreeview and two root nodes:
node one has expandMode Serversidecallback
node two has no specific setting for expandMode.

In this scenario, I can easily change the loadondemand behaviour on the client of node two and dynamically expand the node:
nodeTwo.set_expandMode(2);
nodeTwo.expand();

Scenario 2:
create treeview with two rood nodes:
node one has no specific setting for expandMode.
node two has no specific setting for expandMode.

In this scenario, changing de expandMode property on the client does not result in a fireing the NodeExpand on the server.

Conclusion: It seems that at least one node must have the Serversidecallback value to function properly

Is this correct? In our case there are numerous situations where this is the case.

Bert Groenveld

2 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 22 Jan 2008, 01:09 PM

Hello Bert Groenveld,

We've managed to reproduce the problem.

The ticket has been sent to a developer for review. I will let you know about the results as soon as possible.


All the best,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Veselin Vasilev
Telerik team
answered on 22 Jan 2008, 01:44 PM
Hello Bert Groenveld,

Here is a workaround that you can use:

Add this line in your Page_Load event:

protected void Page_Load(object sender, EventArgs e)  
{  
    Page.ClientScript.GetCallbackEventReference(RadTreeView1, nullnullnull);  

I hope this helps.

I updated your Telerik points.

Greetings,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Relatics Systeembeheer
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or