This is a migrated thread and some comments may be shown as answers.
Why i am seeing the tree in readonly in my view using asp.net mvc
1 Answer 19 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rockey
Top achievements
Rank 1
Rockey asked on 05 Aug 2010, 06:40 PM
Hello Friends.. 
I used this code to display treeview in my view.. I can able to display all categories and prodcutes but I am seeing in readyonly i am not able to expand tree node.. Is there any readonly property I can make false? or how to do this?

thanks


<%= Html.Telerik().TreeView()
       
.Name("TreeView")
       
.BindTo(Model, mappings =>
       
{
            mappings
.For<Category>(binding => binding
                   
.ItemDataBound((item, category) =>
                   
{
                        item
.Text = category.CategoryName;
                   
})
                   
.Children(category => category.Products));
            mappings
.For<Product>(binding => binding
                   
.ItemDataBound((item, product) =>
                   
{
                        item
.Text = product.ProductName;
                   
}));
       
})
%>

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 06 Aug 2010, 06:55 AM
Hello Rockey,

You must may have forgotten to add a ScriptRegistrar to your page.

Regards,
Atanas Korchev
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
Rockey
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or