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

[Solved] Expand node from Client Side ,

3 Answers 216 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
MrHoso
Top achievements
Rank 1
MrHoso asked on 11 Jun 2008, 11:41 AM
Hi,

I am using a different third party component. And i want to replace this component with telerik. But i need to be sure that i can do every thing with telerik too.

Here is the senario,

There is a treeview on the page. All nodes filled server side. Because there are lots of nodes exist. And there is an auto complete combobox on the tree. User write something inside the combobox and select something. and i want to expand the tree untill user selection.

There tree is dynamic. User can select different reports and according to report tree content is changing.

I hope, i can tell what i need to do.

Regards,

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 12 Jun 2008, 09:45 AM
Hello MrHoso,

Please see our online demo - Client-Side API - which shows the client-side API of the RadTreeView control in action.

You may also find the following help topics useful:
Best wishes,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
MrHoso
Top achievements
Rank 1
answered on 13 Jun 2008, 08:44 AM
Hi Simon,

I am not sure if you understand me correctly. Here is a senario,

There is a node that expandmode=ServerSideCallBack. And i want to expand this node from client.

Is there any sample or article for that?
0
Puzsol
Top achievements
Rank 1
answered on 15 Jun 2008, 11:59 PM
Not as such... but you can do it programatically by calling node.expand();

You may also like to take a look at tree.findNodeByValue(value_to_find);

If you ensure that the values are unique, you should always be able to get to where you want... personally, I've been using the tree path string as the value which seems to be working ok.

If you need to refresh the values in the node, then that is possible too.

On a side note, if you do want to drill down more than one level or select a node in the newly expanded part (and the content is being populated by a server callback or webservice) then you will need to put some code in the nodePopulated event handler to select it, or expand the next level (as you have to wait for the content to actually be there to do something with it).

But from what you ask, it all sounds possible to me.

Andrew
Tags
TreeView
Asked by
MrHoso
Top achievements
Rank 1
Answers by
Simon
Telerik team
MrHoso
Top achievements
Rank 1
Puzsol
Top achievements
Rank 1
Share this question
or