TreeGrid | Collapse buttons not showind and collapse not working

Hello,

I am getting data as Json from my webserver including to TreeGrid like so:

$.ajax({
                beforeSend: function (request) {
                },
                type: 'GET',
                url: url,
                success: function (data) {
                    $('#TreeGridContainer').ejTreeGrid(
                        {
                            dataSource: data.dataList,
                            childMapping: "children",
                            columns: data.columnList,
                            treeColumnIndex: 1
                        }
                    );

                }
            }).done(function () {});

But my treegrid shows without collapse arrow buttons. The text is bolder on higher level (in tree structure), but after click it is not collapsed at all. I want to ask, if something has to be moreover specified.

Thank you,
Rasovsky.

2 Replies

MR Martin R March 3, 2016 12:18 PM UTC

Problem solved, I had only one column so it is indexed from zero. I changed treeColumnIndex to 0 and it works.

Rasovsky



SC Saranya CJ Syncfusion Team March 4, 2016 05:36 AM UTC

Hi Martin,
We are glad to know that your issue has been resolved. Please let us know if you require any other assistance.
Regards,
Saranya

Loader.
Up arrow icon