hello
i want use multiple type in treeview
@(Html.TreeView(Model)
.EmptyContent("TelepacTechnology.")
.Children(m => m.childs)
.HtmlAttributes(new { id = "tree" })
.ChildrenHtmlAttributes(new { @class = "subItem" })
.ItemText(m => m.Libelle)
.ItemTemplate(
@
@if (@item.Cat == 0)
{
}
else
{
}
/**/
/**/
/**/
/**/
)
)
"types": {
"default": { "icon": "fa fa-sitemap" },
"fax": { "icon": "fa fa-sitemap" },
"poste": { "icon": "fa fa-phone" }
},
if (@item.Cat == 0) i want use type fax
else i want use type poste
thanks
Vinay SinghRank #604 · 4K reputationPosted May 27, 2021, 10:49 AM EDT
Vinay SinghRank #604 · 4K reputationPosted May 27, 2021, 10:12 AM EDT
Mouhssine tahriRank #9,604 · 204 reputationPosted May 27, 2021, 10:19 AM EDT
Vinay SinghRank #604 · 4K reputationPosted May 27, 2021, 10:25 AM EDT
Mouhssine tahriRank #9,604 · 204 reputationPosted May 27, 2021, 10:37 AM EDT
Mouhssine tahriRank #9,604 · 204 reputationPosted May 28, 2021, 5:14 AM EDT
Mouhssine tahriRank #9,604 · 204 reputationPosted May 28, 2021, 6:45 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts