Hello,
Does TreeView support formatting of item’s label like a table or support atleast a line break ?
I create a simple tree-like Forum using TreeView and I need each node label to look like this template:
Date, Author
Message
Reply
etc.
I try to set node’s label via
I also tried to format my label using a table.
All is for nothing, each label is displayed as a single line string.
This is my init script:
ForumTree = new dhtmlXTreeObject("TreeDiv", "100%", "100%", 0);
var URL = "/api/forum/3";
ForumTree.setSkin('dhx_skyblue');
ForumTree.setImagePath("/Content/dhtmlxTree/codebase/imgs/");
ForumTree.enableCheckBoxes(false);
ForumTree.enableDragAndDrop(false);
ForumTree.enableTreeImages(false);
ForumTree.enableTreeLines(false);
ForumTree.enableTextSigns(false);
ForumTree.enableThreeStateCheckboxes(false);
ForumTree.enableMultiLineItems("300px");
ForumTree.loadXML(URL);
Telerik’s RadTree supports node’s template for example, but I look for a JS Tree for my MVC view.
Thanks,
Slava
Unfortunately the multiline content is not supported in the dhtmlxtreeView.