subview inside treetable

Can I add a sub grid inside a treeTable?
and can it be in the second level of the treeTable which makes it a third level ?
also can I add it only for specific records not all?

Tagged:

Comments

  • edited September 14

    Hello @MPaul ,

    Can I add a sub grid inside a treeTable?
    and can it be in the second level of the treeTable which makes it a third level ?

    Yes, it's possible.
    At first, you need to add a subview:

    subview:{
        view:"datatable",
        columns:[
         ...
        ],
       ...
      },
    

    Then, to make it work, you should add such event as onSubViewCreate which fires after a subview was created.

    To make it visible in treetable just add some code to function template

      template:function(obj, common){
        ...
           }
    

    In treetable we have helper properties. So if you want to work with a special level of a treetable you can use obj.$level . More information you can find here.

    Please check the example: https://snippet.webix.com/mek8oi31

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion