free-jqgrid

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

人走茶凉 提交于 2020-01-06 02:07:29
问题 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

How to convert point to comma for any number of decimal places

喜欢而已 提交于 2020-01-05 22:59:46
问题 Free jqgrid data comes as json string from server. It can contain different number of decimal places like amount: "300.1", tax: "20.12", total: "320.123" This data should appear as comma separated in jqgrid columns like 300,1 20,12 320,123 Locale file grid.locale-et.js was created for this with contents formatter: { integer: { thousandsSeparator: " ", defaultValue: "0" }, number: { decimalSeparator: ",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: "0,00" }, and template: 'number'

How to set date search toolbar field width on autoresize

♀尐吖头ヾ 提交于 2020-01-04 09:20:41
问题 I*m looking for a way to set date toolbar search field width on autoresize. I tried code from How to make html5 date field in search toolbar to respect column width comment: var serverResponse = { "page": "1", "records": "3", "rows": [ { "Id": "1", IsActive: "2015-01-09" }, { "Id": "2", IsActive: "2015-01-05" }, { "Id": "3", IsActive: "2015-01-21" } ] }, dateTemplate = { sorttype: "date", formatter: "date", formatoptions: { srcformat: "Y-m-d", reformatAfterEdit: true }, autoResizing: {

in Jqgrid how to show dropdown value which was updated in database by user by inline edit

↘锁芯ラ 提交于 2019-12-31 05:39:11
问题 below is the code, in this the dropdown selected by the user is getting updated in database, but after refreshing the page i want to to display the value from database which was selected by user previously.now after refreshing the page the cell is blank.kindly help. $qr="SELECT id,`emp_id`,`emp_name`, `att_date`, `emp_join_date`, `intime`,`outtime`,`Total_Hours`,`OT Hours`,`Status` FROM `db_emp_attendance` WHERE Status='Absent' and att_date='2017-04-01'"; $q = mysql_query($qr); $rows = array(

How to apply column template after jqgrid is created

巧了我就是萌 提交于 2019-12-31 03:44:09
问题 Free jqgrid does not allw to apply column template after it is created. I tried var newOrderPriceTemplate = { align: "center", formatter: "showlink", formatoptions: { onClick: function() { alert('clicked'); } } }; $(function () { ... code to create jqgrid into $grid $grid.jqGrid('setColProp', 'Hind', { template: newOrderPriceTemplate, search: false }); }); alert box does not appear if clicked in column. search: false removes search field properly so setColProp is executed. How to apply

How to remove action buttons from posted rows in free jqgrid using Fontawesome checkbox formatter

倖福魔咒の 提交于 2019-12-25 08:58:07
问题 Free jqgrid contain boolean hidden column IsPosted defined as {"label":null,"name":"IsPosted", "edittype":"checkbox","editoptions":{"value":"True:False","readonly":"readonly","disabled":"disabled"}, "align":"center", "formatter":"checkboxFontAwesome4", "editable":true, "width":0,"classes":null, "hidden":true,"stype":"select", "searchoptions":{"sopt":["eq","ne"], "value":":Free;true:Yes;false:No"} }], delete, edit and custom post button needs to be removed from inline actions toolbar if this

jqGrid - Add/Edit dialog not aligned to centre of the screen

£可爱£侵袭症+ 提交于 2019-12-25 06:56:27
问题 I'm using free-jqgrid 4.9.2 When clicking the Add/Edit dialog in toolbar/toppager, then dialog appears in one corner of the screen not in centre of the screen/page. I tried the below code.. Any help or suggestions please? //Toolbar button to add a config jQuery("#userGrid").jqGrid('navButtonAdd', '#userGrid_toppager', { caption: jQuery.i18n.prop('userdetail.table.button.adduser'), title: jQuery.i18n.prop('userdetail.table.title.add'), buttonicon: 'fa-user-plus', onClickButton: function() {

How to use bootstrap standard icons in free jqgrid

不问归期 提交于 2019-12-25 03:42:33
问题 How to use icons included with Twitter Bootstrap (Glyphicon Halflings set) in jqgrid? jqgrid allows to use FontAwesome icons but this requires including additional file. Since bootstrap has already icons included (http://getbootstrap.com/components/) additional file causes duplication and is not nessecary. How to use default bootstrap icons in jqgrid ? Update i'm looking for a way to replace all FontAwesome icons so that adding FontAwesome and jquery ui picture image are not more required.

jqGrid 4.8.0 - Use of the new width size

倾然丶 夕夏残阳落幕 提交于 2019-12-25 03:36:42
问题 I'm having a grid, and I also applied the ( autoResizable: true ) on each column. Now I don't want the grid itself to shrink/widen whenever I double click to resize the column. I want the grid itself to stay as is. I read about setColWidth new function, but failed to use it. An example will be great. Also, Is there any changes to the setGridWidth implementation? I have two grids one below the other, and it appears that there is some calculation of the grid width AFTER my call is being made:

How to reset Selection for multiple pages

邮差的信 提交于 2019-12-25 03:13:39
问题 Currently I'm using free-jqgrid 4.15.4 where I have a requirement to select multiple rows across pages, send email to participants and then reset Selection in one go. For that I'm using multiselect: true,multiPageSelection: true, $('#grid').jqGrid('resetSelection'); in ajax callback of function. But I think the resetSelection code is not working for multiple pages, rather it works only for current page (removes all the checked boxes). Here is the fiddle that shows implementation of