Forum
09:30
16/12/2013
I have a jqgrid with 4 level grouping.
When i click to a group, i want get data of all groups with same level with current group, and get data of parent groups
In my image: When i click to A, i want get data of A1(CONSULAR POLICY 1) and B (CONSULAR)
THis is my code
<script type="text/javascript"> var pageWidth = $("#divCustomMain").width(); jQuery("#jQGridDemo").jqGrid({ url: 'http://vvvv/aa.aspx', datatype: "json", colNames: ['Directorate', 'Branch', 'Section', 'Unit', '', 'Appointment Title', 'Abbreviated Title', 'Job Level', 'Service Scheme', 'Post'], colModel: [ { name: 'Directorate', index: 'Directorate', width: 1, hidden: true, editable: false }, { name: 'Branch', index: 'Branch', width: 1, editable: false, hidden: true }, { name: 'Section', index: 'Section', width: 1, stype: 'text', sortable: true, editable: false, hidden: true }, { name: 'Unit', index: 'Unit', width: 1, stype: 'text', sortable: true, editable: false, hidden: true }, { name: 'Blank', index: 'Blank', width: (pageWidth * (9 / 100)), stype: 'text', sortable: false, editable: false }, { name: 'Title', index: 'Title', width: (pageWidth * (20 / 100)), stype: 'text', sortable: false, editable: true }, { name: 'AbbreviatedTitle', index: 'AbbreviatedTitle', width: (pageWidth * (20 / 100)), stype: 'text', sortable: false, editable: true }, { name: 'JobLevel', index: 'JobLevel', width: (pageWidth * (20 / 100)), stype: 'text', sortable: false, editable: true }, { name: 'ServiceScheme', index: 'ServiceScheme', width: (pageWidth * (15 / 100)), stype: 'text', sortable: false, editable: true }, { name: 'Post', index: 'Post', width: (pageWidth * (10 / 100)), stype: 'text', sortable: false, editable: true } ], rowNum: 3, mtype: 'GET', loadonce: true, rowList: [10, 20, 30], pager: '#jQGridDemoPager', sortname: 'Name', viewrecords: true, sortorder: 'desc', caption: "Manpower Establishment", grouping: true, groupingView: { groupField: ['Directorate', 'Branch', 'Section', 'Unit'], groupColumnShow: [false, false, false, false], groupText: ['<asp:RadioButton ID="radioGroup" GroupName="RadioGroup" CssClass="rdoGrouping" runat="server" OnClick="javascript:GetRowGroupping(this.id)" />' + ' {0} (<b>{1}</b>)', '<asp:RadioButton ID="radioGroup2" CssClass="rdoGrouping" GroupName="RadioGroup" runat="server" OnClick="javascript:GetRowGroupping(this.id)" />' + ' {0} (<b>{1}</b>)', '<asp:RadioButton ID="radioGroup3" CssClass="rdoGrouping" GroupName="RadioGroup" runat="server" OnClick="javascript:GetRowGroupping(this.id)" />' + ' {0} (<b>{1}</b>)', '<asp:RadioButton ID="radioGroup4" CssClass="rdoGrouping" GroupName="RadioGroup" runat="server" OnClick="javascript:GetRowGroupping(this.id)" />' + ' {0} (<b>{1}</b>)'], groupCollapse: true, groupOrder: ['asc', 'asc', 'asc', 'asc', 'asc'] }, editurl: 'http://vvvv/aa.aspx' }); $('#jQGridDemo').jqGrid('navGrid', '#jQGridDemoPager', { add: false, del: false, edit: false, search: false, refresh: false } );
11:19
Moderators
30/10/2007
Hello,
Unfortunatley I do not see how this can be done in the current implementation.
Maybe you can try to play with jqGridGroupingClickGroup (onClickGroup) event which occur when you click a group.
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
28 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66