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

Treeview - getitembypath() using xml binding

1 Answer 63 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Bala
Top achievements
Rank 1
Bala asked on 05 Mar 2012, 09:34 AM
Hi ,
I'm  developing a  SilverLight application with Treeview.
I have a issue with Treeview - getitembypath() / ExpandItembypath()  using  xml binding. But i was able to perform this  with Expanditembypath(). while i performed binding with details from database(SQL) i was able to expand the Particular Node Programatically.
Similiar to this :-

 

 

string path= "Fish|Fresh Water";

 

rad.PathSeparator =

 

"|";

 

rad.ExpandItemByPath(path);

But while i performed the same Operation While binding with XML.
i m unable to Expand item both with-
expanditembypath() and getitembypath().

Since my record size is bulk in 1000's.I shifted the method of binding pattern from SQl db -to- xml(static Content) Binding in treeview.


So i expect ur response for this Issue.
 RadTreeview with - search for the Node and Expanditembypath() Programatically with XMl binding.

Sample TreeView- Xml Binding Ex: from Telerik site.



i'm looking Forward,
Bala S

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 06 Mar 2012, 12:30 PM
Hi,

I've answered a similar question in this thread: http://www.telerik.com/community/forums/silverlight/treeview/bind-radtreeview-to-xml.aspx .
I'm using BringPathIntoView method that works fine in the sample project on my side. BringPathIntoView expands all the parents and displays the required node.

I'm attaching a sample project demonstrating the case.

All the best,
Hristo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
TreeView
Asked by
Bala
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or