Collapse all rows when expanding another row using jqGrid subgrid -


hi tech gurus,

how can expand 1 row in jqgrid?

that when click subgrid expand row expanded columns should collapsed. have added "expandonload:false" attribute in subgrid creation. not working.

pls give correct solution.

thanks, senthil b

the documentation expandonload states:

expandonload when set true make rows expanded automatically when new set of data loaded.

this says nothing collapsing other rows (columns?) when row expanded.


but answer question - here programmatic solution tony using collapsesubgridrow:

function(rowid, selected) {   var rowids = $("#grid").getdataids();    $.each(rowids, function (index, rowid) {            $("#grid").collapsesubgridrow(rowid);     }); } 

you need call on subgridbeforeexpand event.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -