javascript - Expand all grid rows by default with rowexpander - EXTJS 5 -
i using rowexpander plugin in grid.
to expand , collapse rows use rowexpander override: https://www.sencha.com/forum/showthread.php?280175-issue-with-expand-all-when-using-rowexpander-bufferedgrid
however, grid must have on render rows expanded.
i tried solution of following fiddle, without success, giving error:
"uncaught typeerror: cannot read property 'hascls' of null"
any idea how solve this?
fiddle: https://fiddle.sencha.com/#fiddle/10bg
edit: remove comments on lines 99 , 100.
you can try using viewready
event (instead of afterrender
):
fires when grid view available (use selecting default row).
working example: https://fiddle.sencha.com/#fiddle/10bt
Comments
Post a Comment