jQuery UI Widgets › Forums › General Discussions › Navigation › Tree › Styling jqxTree
This topic contains 5 replies, has 2 voices, and was last updated by Hristo 8 years, 8 months ago.
-
AuthorStyling jqxTree Posts
-
My attempts at styling the CSS has been moderately successful, but I cannot seem to get it to look like this:
ImageCan someone help me to see if I can get the CSS to look similar to the image above with the jqxTree?
Hello sthompson,
I would suggest you look at this tutorial it could be useful.
Also, another option will be to use the TreeGrid with just one column.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comI don’t think the link was included for the tutorial Hristo.
Hello sthompson,
I am sorry about the tutorial, please, take a look this:
http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxtree/jquery-tree-styling-and-appearance.htm?search=tree
Please, take a look at this example:
https://www.jseditor.io/?key=jqxtreegrid-with-one-columnBest Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comIn converting from the jqxTree to the jqxTreeGrid, we were previously using getItem and then using the element to keep the parents expanded on reload. I am having difficulties doing this in translating to the TreeGrid. Is there a similar “get” properly that also returns the element so that I can keep the parent nodes expanded on reload?
Hello sthompson,
If you start to use jqxTreeGrid you could bind to
rowExpandevent and there you could get information about which row is expanded.
Please, take a look at this example:$('#treeGrid').on('rowExpand', function (event) { // event args. var args = event.args; // row data. var row = args.row; // row key. var key = args.key; });Again you could save value (ID) of the paren in one variable and when you wnat could expand with
expandRowmethod.
For more information, please take a look at our API Documentation.Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.