How can I add index column in treetable for parent rows only?
Please refer this snippet : https://snippet.webix.com/aedri3gs
Hello @Pooja ,
How can I add index column in treetable for parent rows only?
Here you go: Code Snippet
How can I add index column in treetable for child rows only?
Hello @Pooja ,
How can I add index column in treetable for child rows only?
Please check :
Code Snippet
Also take a look at the following sample (it shows the basic templates with indices):
https://snippet.webix.com/5l3vrrcj
Thanks @annazankevich for the given solution but I want continues index no. of all children node like 1,2, 3…last child node throughout tree instead of node wise.
@Pooja ,
As a solution, you can define a function template to Treetable, use TreeStore’s method each to iterate through all nodes and display child indexes.
Here’s an example of how this would work:
https://snippet.webix.com/9dhtg2fy