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

[Solved] TreeView - client side API

3 Answers 198 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
František
Top achievements
Rank 1
František asked on 24 Feb 2010, 06:51 PM
Hi, i have a few questions about TreeView client side functions.
1) Is it possible to rebind TreeView on client side, like Grid.rebind()?
2) How to get TreeItem.Value in onSelect event?

Thank you.
Best regards.

3 Answers, 1 is accepted

Sort by
0
Ilias
Telerik team
answered on 25 Feb 2010, 11:38 AM
Hi Frantisek Skorunka,

1) Is it possible to rebind TreeView on client side, like Grid.rebind()?
- We didn't implement this functionality for the Q1 Beta, We are currently developing it and it will be              available with the official release.

2) How to get TreeItem.Value in onSelect event?
- We don't serialize JSON for tree items. So we won't provide such functionality.

Sincerely yours,
Ilias
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Christopher Ronak
Top achievements
Rank 1
answered on 03 Jun 2010, 08:36 PM
Hi Ilias,
Is the rebind now supported with the latest release? If not, could you tell me how to reload the treeview?

Thanks!

0
Georgi Krustev
Telerik team
answered on 04 Jun 2010, 10:22 AM
Hi Christopher Ronak,

Unfortunately the required functionality is still not implemented. Nevertheless you can reload TreeView compoent. using bindTo(data) client method or ajaxRequest() if TreeView is bound with Ajax or Web service. You need to aforementioned methods like this:

# if not bind load on demand:
$('#TreeViewID').data('tTreeView').bindTo(jsonData);
Review this demo for more information. Note that you do not need to use dataBinding event handler.

# if ajax or ws
$('#TreeViewID').data('tTreeView').ajaxRequest();

All the best,
Georgi Krustev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
František
Top achievements
Rank 1
Answers by
Ilias
Telerik team
Christopher Ronak
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or