Questions tagged [bootstrap-treeview]

Builds tree widget with Bootstrap list-group theming

Bootstrap treeview Builds JSON powered Bootstrap Tree widgets. Look and feel uses Bootstraps built in list-group

Resources

38 questions
5
votes
6 answers

Bootstrap treeview Select children on root click

i am using Bootstrap Treeview (bootstrap-treeview.js v1.0.2); how can i activate selection effect on all chidren of root node on click of root? This snippet doesn't work as expected $('#tree') .on('nodeSelected', function (event, node) { …
zuk
  • 65
  • 1
  • 1
  • 5
4
votes
3 answers

Bootstrap-treeview doesn't expand or collapse

Here is my html file. Pimba na Bulita
PlayHardGoPro
  • 2,791
  • 10
  • 51
  • 90
3
votes
1 answer

Bootstrap treeview expand collapse icon coming for leaf nodes

I am using bootstrap treeview. For some reason, even the leaf nodes are having expand/collapse icons. I want to show expand/collapse icons only for non-leaf nodes? I am using following config: $('#tree').treeview({data: scope.tree, showCheckbox:…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
2
votes
1 answer

Bootstrap-treeview overflow indentation

i have a bootstrap treeview where the text is too long to fit on one line. The text does flow to the next line, however the indentation only applies to the first line, not the second. See screenshot of Current situation What i want to reach is the…
2
votes
2 answers

How to disable parent node checkbox of Bootstrap Treeview

I want to keep my parent folder names uncheckable. but i can not pass the option with individual node here. I wrote code like this. $("#treeview-checkable").treeview({ data: root.attributeTopicList, showIcon: true, …
Habibul Hasan
  • 103
  • 1
  • 13
2
votes
2 answers

Is there a way to change node text in bootstrap treeview?

Is there a way to change node text in bootstrap treeview without redrawing the whole tree or removing/adding the node? I checked here: https://github.com/jonmiles/bootstrap-treeview and here:…
Joe Schmoe
  • 1,574
  • 4
  • 23
  • 48
2
votes
1 answer

Highlight and Scroll inside bootstrap-treeview

I am building a bootstrap tree inside a bootstrap modal. On Search all the nodes are searched and highlights whenever a match happens. My modal has fixed height and If the searched element is present at the bottom part of the tree I have to scroll…
2
votes
3 answers

Remove empty nodes in a c# List

I have a C# object which after JSON Serialization becomes something like this: var tree = [{ Id:1, text: "Parent 1", ParentId:0 nodes: [ { Id:2, text: "Child 1", ParentId:1 nodes: [ { Id:3 text: "Grandchild…
Jyotirmaya Prusty
  • 278
  • 1
  • 8
  • 25
2
votes
1 answer

How to implement expandNode within onNodeSelected from a Bootstrap treeview?

The nodes from a Bootstrap tree view can only be collapsed/expanded with the + & - prefixes. I understand the click event is saved for less mundaine things. We do use the click event to send information about the leaves to anther part of the…
2
votes
1 answer

Add data-bind property to a boostrap-treeview node for Knockout

Is there a way to have "data-bind" properties added to a node when using the bootstrap-treeview ? https://github.com/jonmiles/bootstrap-treeview I have rendered a treeview, but I need to bind a click event to interact with my knockout ViewModel. For…
Craig
  • 18,074
  • 38
  • 147
  • 248
1
vote
1 answer

Bootstrap tree view: tree is not displaying

I'm new to Bootstrap-treeview (bootstrap-treeview.js v1.0.2). I'm trying to display the tree given in the docs, but it doesn't show up. I've checked the 2 files, didn't spot the mistake. html: {% load staticfiles %} …
saikuron
  • 329
  • 1
  • 2
  • 13
1
vote
1 answer

bootstrap-treeview pre-checked node at page load

I am able to display my contents in the bootstrap-treeview, able to modify few things i.e., restricting selection up to only one node.by using below dirty solution, if(editId!='') { $($checkableTree).treeview('uncheckAll', { silent:…
Kamran Sohail
  • 602
  • 7
  • 13
1
vote
0 answers

How to order a bootstrap-treeview according to node id

When I send my JSON data (an ordered query) to a bootstrap treeview menu, the data is re-ordered according to the menu's node-names. I want the menu nodes ordered according to my JSON structure. Is that possible? I changed code sctructure and plugin…
metin
  • 11
  • 4
1
vote
1 answer

How to pass data to bootstrap-treeview?

I am using bootstrap-treeview to build my tree view. I need to pass an array of JavaScript objects as data, to bootstrap-treeview. I have defied a tree structure on the server side to build the tree and serialize it into a Json string. I then pass…
user9157250
1
vote
1 answer

Cannot call method error - Bootstrap Treeview

I am using Bootstrap Treeview in Unify templates. I am getting following error: bootstrap-treeview.js:1212 Not initialized, can not call method : expandNode when I try to expand node programmatically on page refresh to retain the expanded state…
subha
  • 1,050
  • 2
  • 15
  • 42
1
2 3