Closed praveenlobo7 closed 9 years ago
Any updates??
If you need a four hour response time I'm sure @tonytomov or someone else can provide pay-for consultancy ;).
I cant replicate this. Can u provide a simple test case. On 2 May 2014 15:50, "Matthew Hutton" notifications@github.com wrote:
If you need a four hour response time I'm sure @tonytomovhttps://github.com/tonytomovor someone else can provide pay-for consultancy ;).
— Reply to this email directly or view it on GitHubhttps://github.com/tonytomov/jqGrid/issues/600#issuecomment-42013833 .
$("#circleActorsTable").jqGrid({ url: '/FileTypeManagement/CircleActorGridDetails', datatype: 'json', sortname: "ActorName", mtype: 'POST', postData: { circleID: circleID, fileTypeID: selectedFileNamesDropDownID }, colNames: [gridType, gridGroup, gridActors, gridGet, gridPost, '', '', '', ''], colModel: [ { name: 'ActorType', index: 'ActorType', sortable: true, resizable: false, formatter: 'string', searchoptions: { attr: { maxlength: 30}} }, { name: 'ActorGroup', index: 'ActorGroup', sortable: true, resizable: false, searchoptions: { attr: { maxlength: 30}} }, { name: 'ActorName', index: 'ActorName', sortable: true, resizable: false, searchoptions: { attr: { maxlength: 30}} }, { name: 'AlActorReaderYn', index: 'AlActorReaderYn', align: 'center', resizable: false, sortable: false, search: false, editable: true, editoptions: { value: "True:False" }, formatoptions: { disabled: false }, edittype: 'checkbox', formatter: "checkbox" }, { name: 'AlActorWriterYn', index: 'AlActorWriterYn', align: 'center', resizable: false, sortable: false, search: false, editable: true, editoptions: { value: "True:False" }, formatoptions: { disabled: false }, edittype: 'checkbox', formatter: "checkbox" }, { name: 'ActorID', index: 'ActorID', resizable: false, sortable: true, hidden: true, classes: 'displayNone' }, { name: 'CircleID', index: 'CircleID', resizable: false, sortable: true, hidden: true, classes: 'displayNone' }, { name: 'AlActorStatus', index: 'AlActorStatus', sortable: false, resizable: false, hidden: true, classes: 'displayNone', search: false, viewable: false }, { name: 'AccessListID', index: 'AccessListID', sortable: false, resizable: false, hidden: true, classes: 'displayNone', search: false, viewable: false }, ], pager: 'pagerCircleActors', rowNum: 10, rowList: [10, 20, 50, 100], height: "auto", autowidth: true, viewrecords: true, search: true, loadonce: true, ignoreCase: true, hidegrid: false, shrinkToFit: true, gridview: false, loadComplete: function (data) { $("#circleActorsTable").closest('.ui-jqgrid-bdiv').width($("#circleActorsTable").closest('.ui-jqgrid-bdiv').width() + 1); $("tr.jqgrow:odd").css("background", "#F3F3F3"); resetGridTableSize(); }, onSortCol: function (index, iCol, sortorder) { isSorted = true; }, loadError: function (xhr, statusText, err) { $('#circleActorsTable').jqGrid('GridUnload'); toastr.clear(); toastr.error(err); } });
This is the grid configuration.
In the grid, i am checking the check boxes and on click of SAVE, sending the data to the controller using the below code.
var circleActorGrid = $("#circleActorsTable").jqGrid('getGridParam', 'data');
Now the data received is not the updated one, checked values are not updated.
Hi Gaurav,
Any help??
$("#circleActorsTable").getRowData(); returns only the selected page records, how to return the entire grid records?
Hey Praveen, I can do anything only in weekends and depends upon my schedule On 13 May 2014 09:41, "praveenlobo7" notifications@github.com wrote:
$("#circleActorsTable").getRowData(); returns only the selected page records, how to return the entire grid records?
— Reply to this email directly or view it on GitHubhttps://github.com/tonytomov/jqGrid/issues/600#issuecomment-42915348 .
I suggest you look at paid support - http://www.trirand.com/blog/?page_id=2.
Thanks Gaurav and Mathew.
If loadonce is true you have all the data that comes from the server. If it is false it is only a portion set in rowNum. So in order to solve the problem you will need to use loadonce set to true
We have a jqgrid which contains 2 checkboxes. I want to post the entire grid data to my controller. I use the following command.
$("#circleActorsTable").jqGrid('getGridParam', 'data'); If Loadonce=true, this returns the entire grid data. But if the checkboxes are checked, updated data is not shown.
If Loadonce=false, then null data is returned.
Please help!!