Hi,
I have groupCollapse: [true] but my grid shows up with all rows visible/uncollapsed. Do I need to call a trigger or something else after addRowData (see 5th last row of the code below). Or is something else wrong with my code?
1234567891011121314151617181920212223242526272829303132 <script type="text/javascript"><br /><br />jQuery(document).ready(function(){<br />jQuery("#offene_nennungen").jqGrid({<br />datatype: 'clientSide',<br />colNames:['Nr.','Frage', 'Dimension','Skala','Antwort','n'],<br />colModel :[<br />{name:'nummer',index:'nummer', width:25, align:'left', sorttype:'text', hidden:true}, //<br />{name:'frage',index:'frage', width:100, align:'left', sorttype:'text'},<br />{name:'dimension',index:'dimension',width:80, align:'left', sorttype:'text', hidden:true}, //<br />{name:'skala',index:'skala', width:80, align:'left', sorttype:'text', hidden:true}, //<br />{name:'antwort',index:'antwort', width:660, align:'left', sorttype:'text'},<br />{name:'anzahl',index:'anzahl', width:25, align:'center', sorttype:'int'}<br />],<br />pager: '#pager_offene_nennungen',<br />height: 'auto',<br />width: '100%',<br />rowNum:75,<br />rowList: [10,25,50],<br />viewrecords: true,<br />multiselect: false,<br />grouping:true,<br />groupingView : {<br />groupField: ['frage'],<br />groupColumnShow: [false],<br />groupCollapse: [true],<br />groupOrder: ['asc']<br />},<br />caption: 'Offene Nennungen nach Frage'<br />});<br /><br />var arrdata = [ {nummer:"ASonst", frage:"ASonst: Sonstiges (Wie haben Sie w</script>
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top