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

[Solved] template for populate on demand treeview

1 Answer 64 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.
JulioValiente
Top achievements
Rank 1
JulioValiente asked on 03 Mar 2012, 01:02 PM
Do you have any sample code for setting up the template for each treeviewitem by using  load on demand

<%= Html.Telerik().TreeView()
    .Name("TreeView")
    .DataBinding(dataBinding =>
    {
        dataBinding.Ajax()
                   .Enabled(true)
                   .Select("_AjaxBinding", "TreeView");
    })
%>

how will i set up template for each treeviewitem for this?

1 Answer, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 05 Mar 2012, 08:42 AM

The feature is not implemented and already logged, you can vote for it. As a work-around, you can set Encode to false and render the necessary HTML in the Text field.

Regards,
Alex Gyoshev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
TreeView
Asked by
JulioValiente
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or