free-jqgrid

How to pass extra parameters for in row edit/save action in free-jqgrid?

泄露秘密 提交于 2021-01-28 11:20:58
问题 I have a jgrid and the code is below. I wish to send some extra parameters to the server when the save icon in each row is clicked. How to do this? let colNames = ['Designation', 'No. of Resource(s) Required', 'Competence for Job', 'Skill of Resource', 'Time Required(in %)', 'From', 'To', 'Reason For Request', 'Assigned Person(s)', 'Current Role in Project', 'resource_type', 'Billing']; let colModel = [ {name:'resource_designation', index:'resource_designation', resizeable:true, editable:

How to append Angular component to JqGrid's cell?

試著忘記壹切 提交于 2020-02-23 04:01:50
问题 This is my first Angular project. I'm integrating JqGrid to ngx-admin template. I would like to append an Angular component to a JqGrid column/cell (editAction). I'm passing the component as a string along with data. However, the column appears to be blank. Is this even possible? Any help would be much appreciated! var compTypeJQGridDefaults = { colNames: ['Company Type Name', '', '',], colModel: [ { name: 'companyTypeName', index: 'companyTypeName', search: false, width: 100, searchoptions:

How to set row id value after form editing in free jqgrid

我是研究僧i 提交于 2020-01-16 13:19:54
问题 Table has primary key with 3 columns (Grupp,Kuu,Toode) and server returns Id created from those columns. After primary key column is changed in form editing, server sends new row id back. Free jqgrid does not set this row id as changed row id. Server returns new id. I tried to change id in code below in editfor afterSubmit method by using function EditAddForm_AfterSubmit(response, postdata) { var json = $.parseJSON(response.responseText); return [true, '', json.Id]; } but old id is still

free-jqgrid: easier way to save, load and apply filter data including filter-toolbar text and page-settings?

非 Y 不嫁゛ 提交于 2020-01-15 03:55:15
问题 I have a pretty standard jqGrid using free-jqGrid 4.13 with loadonce: true; What I want to do is something I came across a couple of times: I want to save the state of the grid (without the data); that means the settings (number of current page for example), filters the user applied and also the text in the filter-toolbar. and then load and apply this data to the grid later. jqGrid is such a powerful tool, but stuff like this seems such a pain to accomplish. after hours and hours of work i

formediting modals shows at wrong position

大憨熊 提交于 2020-01-15 03:22:09
问题 When I moved from triand-jqGrid 4.6.0 to free-jqGrid 4.8.0 formediting broke This is because my jqGrid is inside a div with position: absolute; z-index: 0; so when the edit modal is rendered inside the gbox div of the jqGrid and the overlay is appended on the body z-index rules places the dialog under the overlay. This bug was easily corrected by undoing this change from the jqGrid.src.js (This means that when I click the edit button, the edit form shows inside the grid but in the html it is

jqGrid filterToolbar with local data

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-14 14:33:33
问题 I have a jQgrid that loads data initially via an ajax call from backend(java struts). Again, this is one time load and once loaded, the jqGrid should operate on the data available locally. Initially, datatype:json and once loadcomplete, set datatype:local. Now is there a way to use filterToolbar for local datatype with the following options in free jqgrid; autocomplete enabled in the toolbar excel like filtering options Jqgrid Options: jQuery("#listTable").jqGrid({ url:'/WebTest/MainAction.do

Use jqgrid to filter in the same way searching is done

耗尽温柔 提交于 2020-01-14 05:26:12
问题 Let me see if I can explain this... I have a product grid, searching works fine, I have set up a custom button to filter on specific items in the json that are not in the grid, right now I am making an ajax call (using VisualForce) to get the json then I'm storing it in a global variable before using the json to load the grid, I then load the grid. When a filter is chosen I build a temp array of the json that contains the filter and then set the product grid to the new array. I then have a

jqGrid - Select selected cell's text while inline editing

岁酱吖の 提交于 2020-01-11 06:44:31
问题 Part 1) In my grid, I have some editable columns which I would like to do inline editing to. However when I select any particular cell and if the inline editing is available on that cell ( editable: true ), it should select the text to be edited. For example if this is the default grid: then upon selecting any cell in Quantity, the result should be something like this: When we click on a cell to edit that row in jqGrid, current implementation does not highlight the selected text like this. Is

dont count comma separated in maxlength jqgrid column deciamal

ε祈祈猫儿з 提交于 2020-01-06 05:53:29
问题 I have input field which contains decimal and special characters e.g. comma and dot while calulating the maxLength of the field i want to skip special characters : { name: "amount", width: 62, template: "number", formatter: "number", formatoptions: { decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 4, defaultValue: '0.0000' }, editoptions: { maxlength; 5 type: "number" } }, I when edit inline record filed "PackageCode" is count decimalSeparator I want don't count decimalSeparator

How to force jqgrid to query data using OData in query string

一曲冷凌霜 提交于 2020-01-06 02:07:48
问题 Free jqgrid reads remote json data using $.jgrid.useJSON = true; $.extend(true, $.jgrid.defaults, { mtype: 'GET', url: '@Html.Raw(Url.Action("Entity", "API",))' } ); search window is defined using $.extend(true, $.jgrid.search, { multipleSearch: true, recreateFilter: true, closeAfterSearch: true, overlay: 0, recreateForm: true }); If search button is pressed, ugly filters query string parameter is created like http://localhost:52216/admin/API/Entity/DoklstlG?search=true&nd=1448746804617&rows