free-jqgrid

How to receive dynamic data in Web API controller Post method

余生长醉 提交于 2019-11-28 02:07:31
jqgrid posts json data in POST request buffer as {"headerData": { "Tasudok": "134", "Kuupaev": "2015-11-23", "Dokumnr": "135319" }, "rowData": { "Toode":"", "Kogus":"0.0000", "Nimetus":"öäölä<a", "_rowsum":"0.00", "Id":"1639", "Dokumnr":"135319", "_oper":"edit", "_rowid":"1639" } } Data is posted to ASP.NET MVC4 Web API using URL like API/Entity/someid?culture=en&layout=1 with default routing. headerData and rowData value properties are defined in runtime and can vary. For example in some call rowData may contain additional properties and some rowData properties may be missing. culture and

Case insensitive search by jqGrid filterToolbar can't find special Turkish character

拥有回忆 提交于 2019-11-27 15:53:56
I have a problem when I'm using jqGrid filterToolbar . Toolbar make a search but cant find the character which is contain "ı" . Forexample I can search the "yapi" word but search toolbar can't find the "yapı" . jQuery("#grid-table").jqGrid('filterToolbar', { stringResult: false, searchOperators: false, defaultSearch: "cn" }); My page encoding is; <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> and my ajax post is here $.ajax({ type: "Post", url: "page/get.aspx, contentType: "application/json; charset=utf-8", dataType: "json", data: "{}", success: function () { // }, error

jqGrid - Unique ID for new row

一个人想着一个人 提交于 2019-11-27 15:52:12
I am trying to asign a unique ID to the new rows i add to my jqGrid. I use free jqGrid 4.11.0, a java rest service for the server side and MS SQL for databases. inlineEditing: { ajaxSaveOptions: { contentType: "application/json" }, serializeSaveData: function (postData) { var idArray = grid.getCol('id'); var count = 0; var k = 1; while(postData.id.search('jqg') != '-1'){ for(var i =0 ; i<idArray.length;i++){ if(k == idArray[i]){ count++; } if(count == 0){ postData.id = k ; break; } } k++; } return JSON.stringify(postData); } } I noticed the default ID given by jqGrid is jqg + a number. Any

How to receive dynamic data in Web API controller Post method

拥有回忆 提交于 2019-11-27 08:10:05
问题 jqgrid posts json data in POST request buffer as {"headerData": { "Tasudok": "134", "Kuupaev": "2015-11-23", "Dokumnr": "135319" }, "rowData": { "Toode":"", "Kogus":"0.0000", "Nimetus":"öäölä<a", "_rowsum":"0.00", "Id":"1639", "Dokumnr":"135319", "_oper":"edit", "_rowid":"1639" } } Data is posted to ASP.NET MVC4 Web API using URL like API/Entity/someid?culture=en&layout=1 with default routing. headerData and rowData value properties are defined in runtime and can vary. For example in some

how to place pager to end of top of toolbar in free jqgrid

我们两清 提交于 2019-11-27 06:31:43
问题 free jqgrid top toolbar contains lot of buttons, select element and pager without last page button. Buttons are wrapped to multiple lines. Central part is removed using #grid_toppager_center { width: 0; } Since pager is in right area, there is lot of unused empty space below and after pager: I tried to remove empty space using #grid_toppager_center, #grid_toppager_right { width: 0; } and pagerpos: 'left', In this case pager appears in top of toolbar buttons: How to place pager to other place,

Filtering jqGrid datetime columns using date picker just on date

 ̄綄美尐妖づ 提交于 2019-11-26 23:08:48
I currently have an issue where I have datetime columns in a grid that are formatted to only display the date portion of the field. So the raw data looks like "2015-04-15T15:31:49.357" and the grid column looks like "4/15/2015". I am using a datepicker to support column filtering and would like to be able to use the "eq" operator to filter using "equals" but just on the date portion. Currently I do not get any matches because the time is getting in the way. Is it possible to get around this? I know I can manipulate the raw data to strip off the time portion of the date, but I would prefer to

How to use native date picker in both form and row editing in free jqgrid

别来无恙 提交于 2019-11-26 22:12:16
问题 Browser native datepicker is used for inline row editing as described in How to use input type='date' for date column in jqGrid How to use it for form editing also? I tried code below: Selected row in grid Pressed edit button in toolbar Pressed save button in edit form After that date disappears from grid invdate column. Also pressing next and previous record buttons in edit form cause invdate to disappear. How to edit and show date in edit form using browser native html5 date type picker if

Case insensitive search by jqGrid filterToolbar can't find special Turkish character

梦想的初衷 提交于 2019-11-26 17:25:09
问题 I have a problem when I'm using jqGrid filterToolbar . Toolbar make a search but cant find the character which is contain "ı" . Forexample I can search the "yapi" word but search toolbar can't find the "yapı" . jQuery("#grid-table").jqGrid('filterToolbar', { stringResult: false, searchOperators: false, defaultSearch: "cn" }); My page encoding is; <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> and my ajax post is here $.ajax({ type: "Post", url: "page/get.aspx,

jqGrid - Unique ID for new row

好久不见. 提交于 2019-11-26 17:20:58
问题 I am trying to asign a unique ID to the new rows i add to my jqGrid. I use free jqGrid 4.11.0, a java rest service for the server side and MS SQL for databases. inlineEditing: { ajaxSaveOptions: { contentType: "application/json" }, serializeSaveData: function (postData) { var idArray = grid.getCol('id'); var count = 0; var k = 1; while(postData.id.search('jqg') != '-1'){ for(var i =0 ; i<idArray.length;i++){ if(k == idArray[i]){ count++; } if(count == 0){ postData.id = k ; break; } } k++; }

How to use free jqgrid properties to conditionally add actions buttons

女生的网名这么多〃 提交于 2019-11-26 11:25:28
free jqgrid shows orders. Posted orders should have yellow background and only open action button. Unposted orders have white background, standard delete and custom post action button. colmodel for actions column: {"hidden":false,"label":"Activity","name":"_actions","search":false,"width":94 ,"sortable":false,"formatter":"actions","viewable":false,"formatoptions":{"editbutton":false,"onSuccess":function (jqXHR) { jqXHRFromOnSuccess=jqXHR;return true;} ,"delbutton":true,"delOptions":{"url":"http://localhost:52216/admin/Grid/Delete?_entity=DoklstlT","afterComplete":function (response, postdata,