Home › Forums › Guriddo jqGrid JS › Help › How to shrink subGrid
I hope that can only expand a subgrid
i try many way,but it's not work
OK,i finish at last.
=======like this===========
var lastSelectId=1
…
subGrid: true,
subGridRowExpanded: function(subgrid_id, row_id) {
$(“#”+subgrid_id).html(“aaaaaaaa”);
},
onSelectRow: function(id){
$(“#list4”).collapseSubGridRow(lastSelectId);
$(“#list4”).expandSubGridRow(id);
lastSelectId=id;
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS