Reputation: 1
I found this plugin: http://w2ui.com/web/docs/1.5/grid
I follow the related guide to, create a table with row expands,but when I click on expand row it showing a loader only, it is not expanding.
How can I solve this?
Upvotes: 0
Views: 342
Reputation: 10782
w2ui 1.5 no longer officially supports subgrids (or expandable records), even though the onExpand
event is still documented.
According to the owner of w2ui, you're supposed to use tree-like grids instead, see: http://w2ui.com/web/demos/#!grid/grid-7
If you still want to use subgrids, you'll have to tweak the CSS, e.g. by explicitely setting the height of the container in the expand event handler:
onExpand: function (event) {
$('#'+event.box_id).css({height: "100px"}).html('<div style="padding: 10px; height: 100px">Expanded content</div>');
},
Fiddle: https://jsfiddle.net/fh9jpu5q/
More details: https://github.com/vitmalina/w2ui/issues/1160
Upvotes: 0