开发者

Smartgwt collapse / expand all listgrid records

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜