Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
multiple grouping on JqGrid, Get data current group and parent group????
16/12/2013
09:30
Avatar
futureman
New Member
Members
Forum Posts: 2
Member Since:
16/12/2013
sp_UserOfflineSmall Offline

I have a jqgrid with 4 level grouping. 

Image Enlarger

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&#39;, 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&#39; }); $('#jQGridDemo').jqGrid('navGrid', '#jQGridDemoPager', { add: false, del: false, edit: false, search: false, refresh: false } );
17/12/2013
11:19
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information