jQuery UI Widgets Forums TreeGrid diferent buttons in rows

This topic contains 2 replies, has 2 voices, and was last updated by  Apuka73 8 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • diferent buttons in rows #86412

    Apuka73
    Participant

    Hello!
    (sorry my poor english)

    My data :

    var data = [
        {
            "id": "1", "name": "Level 1",
            "children": [
                {
                    "id": "2", "name": "Level 2",
                    "children": [
                        {"id": "3", "name": "Level 3a"},
                        {"id": "3", "name": "Level 3b"}
                    ]
                }
            ]
        }
    ];

    I like :
    ‘View’ button in level 1,
    ‘View’ and ‘New field in level 3’ in level 2,
    ‘View’ and ‘Edit’ button in level 3
    in new column.

    How to make this?

    Thank You!
    Andrew

    diferent buttons in rows #86417

    Christopher
    Participant

    Hi Apuka73,

    In order to accomplish that you have to check for the current level that is expanded and render the buttons you need using the “cellsrenderer” function on the column. Here is an example:
    https://www.jseditor.io/?key=xb-treegrid

    Best Regards,
    Christopher

    jQWidgets Team
    http://www.jqwidgets.com

    diferent buttons in rows #86418

    Apuka73
    Participant

    Dear Christopher!

    Nice!
    Thank you!
    Andrew

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.