Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > TreeView > TreeView Appearence: when databind and hard code

Not answered TreeView Appearence: when databind and hard code

Feed from this thread
  • Lee avatar

    Posted on Jan 16, 2012 (permalink)

    hi
    Admin and everyone!
     i have problem about RadTreeview, can anybody give me a help?

    I generated a treeview by the way of data-binding. But the treeview's default status is collapsed. I want the treeview's status is expanded, what should i do?
     <Controls:ContainerBinding PropertyName="IsExpanded" Binding="{Binding IsExpanded,Mode=OneTime}" />
    by this way, i can do it, but i have to add one property IsExpanded to my customer object. there is another way?




    Anybody?
    best wishes
    thanks
    Attached files

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Jan 17, 2012 (permalink)

    Hello Lee ,

     Indeed, the ContainerBindings solution is the typical MVVM/XAML solution for this scenario. One thing to note here is that in SL 5 you can use Style Bindings instead, just like in WPF.
    If you are looking for a code behind solution and you need to expand all RadTreeViewItems, you can use the ExpandAll() method of the RadTreeView. Is this suitable for you ?

    Greetings,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > TreeView > TreeView Appearence: when databind and hard code
Related resources for "TreeView Appearence: when databind and hard code"

Silverlight TreeView Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]