Customize dataview Item

Hello, I’m using your DataView component and I need to add the expand functionality to each item. I have a function to do that, but it expands all item at the same time:

dhxViewContent.on_click[“expand_button”] = function (e) {
var id = this.locate(e);
var data = this.get(id);

            if (data.Expand == 'expand') {
                data.Expand= 'collapse';
                dhxViewContent.customize({ height: 300 });
                this.refresh(id);
            } else {
                data.Expand = 'expand';
                dhxViewContent.customize({ height: 150 });
                this.refresh(id);
            }

            $("#expanded_content").slideToggle("slow");

}

Is there any way to expand only the item that I clicked or the selected item?

Hello,

we have already provided the solution for this issue in the Members’ Support.