Click here to Skip to main content
15,913,263 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have html tree view control,

HTML
(Html.TreeView(Model)
    .EmptyContent("No locations have been defined yet!")
    .Children(m => m.ChildGroups)
    .HtmlAttributes(new { id = "tree" })
    .ChildrenHtmlAttributes(new { @class="TreeItemCenter" })
    .ItemText(m => m.Name)    
    .ItemTemplate(
        @<text>
            <a id="NodeName" href="#@item.GroupId">@item.Name</a>
        </text>)
)


And In controller,

How can i bind a value which is comes from datebase.
In database my table structure is.
groupId Name Parentid
Posted
Updated 14-May-13 21:09pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900