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

[Solved] Treeview is readonly

1 Answer 22 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.
Charles
Top achievements
Rank 1
Charles asked on 27 Aug 2010, 05:24 PM
Hi,

Here is the code for my partial view:

<%

 

= Html.Telerik().TreeView()

 

.Name("TreeView")

.ClientEvents(events => events.OnSelect("onSelect"))

.HtmlAttributes(new { style = "width:100%;" })

.BindTo(Model.ObnCategoriesDTO, mappings =>

{ mappings.For<ObnCategoryDTO>(binding => binding

.ItemDataBound((item, category) => { item.Text = category.ObnCategoryName; })

.Children(category =>category.ObnSubCategories));

mappings.For<ObnSubcategoryDTO>(binding => binding

.ItemDataBound((item, subCategory) => { item.Text = subCategory.ObnCategoryName; }));

})

 

%>


ObnCategoryDTO and ObnSubcategoryDTO are classes that I created that are being populate in a Linq to Entities query. ObnCategoryDTO has a name and id property and it has :

 

 

public List<ObnSubcategoryDTO> ObnSubCategories

 


The tree view displays and when we look at the page source the subitems are populated correctly.  But the treeview is disables/readonly so when we click the arrows it doesn't expand and when we click the ClickEvent is not fired.

Anyone have any suggestions/solutions?

Thanks in advance!!!!

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 30 Aug 2010, 07:42 AM
Hi Ethan,

Are you using jquery.validate.js? If yes you may have hit this problem. If not you can use Firebug or Fiddler to check if all the JavaScript files are correctly loaded. Also check your page for any JavaScript errors.

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