开发者

Smartgwt collapse / expand all listgrid records

开发者 https://www.devze.com 2023-02-22 08:16 出处:网络
I have a listgrid like this: http://www.smartclient.com/smartgwt/showcase/#grid_nested_form It appears a form when I click expand button.

I have a listgrid like this: http://www.smartclient.com/smartgwt/showcase/#grid_nested_form

It appears a form when I click expand button.

Is there some way to expand only one element? In another words, fire collapse event of all records开发者_如何学Go of my listgrid except the one I have selected.

Thanks a lot!


You can use the setCanExpandMultipleRecords method to achieve that sort of spring-back effect.

grid.setCanExpandMultipleRecords(false);
0

精彩评论

暂无评论...
验证码 换一张
取 消