subgrid

jqgrid open subgrid only if there is some data

巧了我就是萌 提交于 2019-12-24 03:39:15
问题 here is declarations of my subgrid: subGrid : true, subgridtype: 'json', subGridUrl: 'manuf_subgr.php', subGridModel: [{ name : ['Package','Sticker','Manufacturer'], width : [85,50,100], params: ['Catalogue'] } ], gridComplete: function() { var timeOut = 50; var rowIds = $("#schedule").getDataIDs(); $.each(rowIds, function (index, rowId) { if(rowId.row_cnt != 0){ setTimeout(function() { $("#schedule").expandSubGridRow(rowId); }, timeOut); timeOut = timeOut + 200; } }); } what I expect to

jqGrid: subgrid doesn't populate with data

99封情书 提交于 2019-12-20 04:36:55
问题 I've got a subgrid that, when you click the "+" sign next to "Cheese", the ajax query fires, and I see the subgrid column names, but the actual data isn't populated into the subgrid. The problem happens regardless of which grid I try to expand, but the "Cheese" example is the one shown below. You can see the XML response in the bottom portion of the FireBug output in the screenshot. I've read through that XML, and it looks to be valid. On a hunch, I also pasted the XML output into this page,

Mapping JSON data in JQGrid

荒凉一梦 提交于 2019-12-17 07:34:15
问题 I am using jqGrid 3.6.4 and a jquery 1.4.2 . in my sample i am getting following json data format & i want to map these json data into rows of a jqgrid { "page": "1", "total": 1, "records": "6", "rows": [ { "head": { "student_name": "Mr S. Jack ", "year": 2007 }, "sub": [ { "course_description": "Math ", "date": "22-04-2010", "number": 1, "time_of_add": "2:00", "day": "today" } ] } ] } my jqgrid code is as follows jQuery("#"+subgrid_table_id).jqGrid({ url:"http://localhost/stud/beta/web

jqGrid : issue loading nested sub grid with local datatype

感情迁移 提交于 2019-12-17 06:14:29
问题 I'm trying to get nested subgrids to work using jqGrid with local data. I've searched around quite a bit but haven't been able to find a solution. Here is a simplified sample of my code: var mainGridData = [ // main grid data { id: "m1", col1: "11", col2: "12" }, { id: "m2", col1: "21", col2: "22" }, { id: "m3", col1: "31", col2: "32" } ]; var firstSubgrid = { m1: [ // data for subgrid for the id=m1 { id: "s1a", c1: "aa", c2: "ab", c3: "ac" }, { id: "s1b", c1: "ba", c2: "bb", c3: "bc" }, { id

jqgrid how to expand/collapse subgrid when click a row

谁说我不能喝 提交于 2019-12-11 23:31:49
问题 I need to click a row, and if the subgrid is collapsed, then expand it. the subgrid is expanded, then collapse it. I found the question is here, but @Oleg sugesstion didn't work in my project. I have debuged it and found the "onSelectRow" will be executed twice. for example, onSelectRow: function (row_id) { alert("hello"); }, It will get two alert. So, if I write this: onSelectRow: function (row_id) { $("#grd").toggleSubGridRow(row_id); }, it will expand and collapse,(actually, I can't see

Subgrid containing Activities returned by FetchXML query - not always refreshing

为君一笑 提交于 2019-12-11 16:50:04
问题 I have created a subgrid on a Form for the Contact Entity in Dynamics CRM 2015 which returns all Email, Task, Appointment and Phone Call Activities where either the Activity is Regarding the Contact for which the Form has been loaded, or where that Contact is a participant in the Activity (i.e. in the Sender or To/CC/BCC fields for an email, or on the attendee list for an Appointment). I have added a new subgrid (called "NewActivities" for now) to my Contact Form which uses a specific

Subgrid Caching or Stopping Subgrid data from being removed (jqGrid)

家住魔仙堡 提交于 2019-12-10 23:29:50
问题 Is there any way to force jqGrid not to remove the subgrid data when its row is toggled? My current process for loading the datagrid is as follows: 1) Setup main grid, setting subgrid up programatically with an ID that I can use later 2) Load data into main grid locally via json 3) Add data to subgrid locally via json Due to the fact that I am loading the subgrid locally instead of by a URL when the user toggles (hides then redisplays) the grid doesn't have any data in it and I want it to

jqGrid hidden plus/minus/open icon column make subgrid less wide as main row

自古美人都是妖i 提交于 2019-12-10 11:49:43
问题 Following to this post about hiding plus/minus/open icon column, I have applied these suggests, so in CSS file : .subgrid-cell { display: none; } All is OK : but the subgrid don't fill the width of right column of main grid. Please, is there a mistake in my code, jQuery(document).ready(function ($) { var OldSelectedRow=null; var height=$('body').height()-210; var numRows=Math.floor(height/23)-(Math.floor(height/23)%5); var heightRows=numRows*23; var myGrid = $("#tab22"); myGrid.jqGrid({

jQuery - jQGrid - expand,collapse subgrid on grid row click

一曲冷凌霜 提交于 2019-12-10 10:54:33
问题 Here there is an answer on how to expand a subgrid when we click a row using: onSelectRow: function(rowId) { $("#jqgrid_id").expandSubGridRow(rowId); } How can we collapse the row if it has been already expanded? I am looking for something like: onSelectRow: function(rowId){ if (the_row_of_the_grid is expanded) { // collapse: How implement this??? } else { $("#jqgrid_id").expandSubGridRow(rowId); } } to have a complete expand/collapse on row click. 回答1: I haven't tested it, but it seems to me

CRM - sending email to contacts in sub grid

夙愿已清 提交于 2019-12-08 08:08:12
问题 I work for a charity and we want to use our Dynamics 365 to support our fundraising team. We have created a 'Fundraising Event' entity with an N:N relationship to the Contact entity (renamed to 'Individual' in our Org. I have a sub grid on each entity so that we can add contacts to events either from the Contact record or from the event record. We need to be able to send emails to everyone registered for an event to wish them good luck before the event. I have created a workflow against the