Treeview - getitembypath() using xml binding

2 posts, 0 answers
  1. Bala
    Bala avatar
    20 posts
    Member since:
    Dec 2011

    Posted 05 Mar 2012 Link to this post

    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

  2. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 06 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
Back to Top