Ola
I was kind of excited when I found this today. It justs meets most of the requirements that I need from a treeview. To mention a few, one can
1. Check, CheckAll, UnCheck, UnCheckAll
2. Select, SelectAll, UnSelect, UnSelectAll,
3. Specify an id, text for a node
4. Search a node by id
5. Update a node's text using the id and many many more..
Dependencies
1. JQuery
2. Bootstrap Css
3. FontAwesome
Using in your project
1. Unzip the files and copy the attached UOETreewView custom view component to your project files.
2. Copy the css and js files to your project files folder
3. Open the designer and add the UOETreeView component from custom layouts and set its size etc also changing its name
4. Generate events etc for your code
5. Use BANano.LoadLayout method to load your layout and then add nodes via code.
The attached code file is the most updated version of the example for this component.
UOENowTreeView
UpdateNode does not update the icon & image of the node.
I was kind of excited when I found this today. It justs meets most of the requirements that I need from a treeview. To mention a few, one can
1. Check, CheckAll, UnCheck, UnCheckAll
2. Select, SelectAll, UnSelect, UnSelectAll,
3. Specify an id, text for a node
4. Search a node by id
5. Update a node's text using the id and many many more..
Dependencies
1. JQuery
2. Bootstrap Css
3. FontAwesome
Using in your project
1. Unzip the files and copy the attached UOETreewView custom view component to your project files.
2. Copy the css and js files to your project files folder
3. Open the designer and add the UOETreeView component from custom layouts and set its size etc also changing its name
4. Generate events etc for your code
5. Use BANano.LoadLayout method to load your layout and then add nodes via code.
The attached code file is the most updated version of the example for this component.
UOENowTreeView
- Refresh
set the options for the tree - AddNode (parentID As String, pk As String, Text As String, ImgURL As String, Icon As String, Tag As Map)
add node - GetDataById (pk As String) As BANanoObject
get data by id - GetNodeById (pk As String) As BANanoObject
get node by id - GetNodeByText (pk As String) As BANanoObject
get node by text - GetDataByText (nodeText As String) As BANanoObject
get data by text - SetText (pk As String, Text As String)
set text of node - SetIcon (pk As String, Icon As String)
set icon of node - SetImage (pk As String, ImageURL As String)
set image of node - SetData (pk As String, Tag As Map)
set data for Node - UpdateNode (pk As String, Text As String, ImgURL As String, Icon As String, Tag As Map)
update node - GetChildren (pk As String) As List
get children - GetCheckedNodes() As List
get checkedNodes - GetSelections() As List
get selected nodes - GetAll() As String
get all ids - RemoveNode (pk As String)
remove a node - Check (pk As String)
check a node - UnCheck (pk As String)
uncheck a node - SelectNode (pk As String)
select a node - UnSelectNode (pk As String)
unselect a node - ExpandAll()
ExpandAll nodes - Reload()
reload tree view - CollapseAll()
collapse all nodes - CheckAll()
checkAll nodes - UnCheckAll()
UncheckAll nodes - SetBackgroundColor (pk As String, color As String)
set background color of node - SetColor (pk As String, color As String)
set color of the node - Expand (pk As String)
Expand a node - Collapse (pk As String)
collapse a node - Enable (pk As String)
enable a node - Disable (pk As String)
disable a node - Destroy
destroy the tree
UpdateNode does not update the icon & image of the node.
Attachments
Last edited: