free-jqgrid

Updating GroupSummary Row in JQgrid on Editing

牧云@^-^@ 提交于 2019-12-25 01:52:44
问题 We are having a JQgrid with 3 level grouping applied. When we load the grid for the first time the column sum is getting rolled up successfully. We need to perform inline edit in the row and want the Group summary rows to get updated with the new value added. We have tried reloading the grid on aftersavefunc of editRow method but it is replacing the grid data with the server data. Is there a way we can refresh the Group summary row data when row is edited. Thanks. 回答1: You can, for example,

JQgrid show custom message on form field

半世苍凉 提交于 2019-12-24 21:45:48
问题 Using free jqgrid latest version. In one of the form fields I have onchange event tied up to the textbox. On the event I make an ajax call to my mvc controller which validates the input that was entered. The only issue I am having is how to show any custom message in case the input was invalid. I have the below code : { name: 'id', index: 'id', width: 60, sorttype: "text", editable: true, align: "right", editrules: { required: true }, editoptions: { dataEvents: [ { type: 'change', fn:

How to prevent row selection on tree_mode node collapse in free-jqgrid?

∥☆過路亽.° 提交于 2019-12-24 19:24:39
问题 I'm using free-jqgrid 4.15.2 as navigation. It's in tree mode and when users collapse a node, the default behaviour is to immediately select it. I'd like them to be able to hide sections of the menu without selecting the clicked row, but there do not seem to be easily accessible events that correspond with expanding and collapsing tree_mode nodes. I have these events in my master branch, but our move to free-jqgrid broke it. Here's the working code using a very early version of jqgrid. $

Remove dancing effect in Chrome from free jqgrid toolbar buttons in font awesome icons are used

回眸只為那壹抹淺笑 提交于 2019-12-24 15:24:27
问题 I tried demo http://www.ok-soft-gmbh.com/jqGrid/FortAwesome/FontAwesome2.htm from answer How to make jqgrid top toolbar custom buttons bigger like standard buttons in Chrome in less than 100% browser zoom level. Hovering mouse over toolbar buttons cause toolbar to vibrate ugly. It 100% zoon it does not occur but it occurs in every zoom level less than 100% It does not occur in zoom level >=100% and it does not occu in Intrnet Explorer It occurs in both top and bottom toolbars. How to fix this

Free jqGrid 4.9.0 - Dates format on Safari on MAC

心不动则不痛 提交于 2019-12-24 14:09:33
问题 Testing date format options on all major 4 browsers (Safari, Chrome, IE & Firefox) while working on windows works well. However, when testing it on MAC machines, the format option failed within Safari (Firefox on MAC works well). My format option is: gridField.formatter = 'date'; gridField.formatoptions = {}; gridField.formatoptions['srcformat'] = 'U/1000'; gridField.formatoptions['newformat'] = 'm/d/Y H:i:s'; Which in Safari (on a MAC only) will yield: NaN/NaN/NaN NaN:Nan:NaN. Any idea how

jqGrid - bindkeys change arrow and tab keys behavior

江枫思渺然 提交于 2019-12-24 11:28:51
问题 I would like to provide bindKeys functionality on my jqGrid. This means on Enter , the data should be saved (working fine), on left arrow the cursor should move to the left editable cell and so on. This means when the cursor is at left most position in the textbox as shown in the image and the left arrow key is pressed, the cursor should be moved to the previous editable cell (in this case Item Number ). If the cursor is somewhere in the middle of the text then the normal behavior should be

How to filter jqGrid data but not the grid itself

柔情痞子 提交于 2019-12-24 11:17:58
问题 As far as I see, free-jqgrid uses jlinq to filter and search data. I am making my own filters, that are using grids postData in it's well-known format: { "groupOp": "AND", "groups" : [ { "groupOp": "OR", "rules": [ { "field": "name", "op": "eq", "data": "England" }, { "field": "id", "op": "le", "data": "5"} ] } ], "rules": [ { "field": "name", "op": "eq", "data": "Romania" }, { "field": "id", "op": "le", "data": "1"} ] } This data converted internally to jlinq query. Are there any public

Custom Filter records in Free-jqgrid 4.15.4

牧云@^-^@ 提交于 2019-12-24 08:05:39
问题 I have one question regarding custom filters in free jqGrid 4.15.4. I want to implement a search functionality where if I select 'less than but not null or empty' filter then it should show only rows of records which column isn't null or empty. I am able to create custom filter which gives 'is null' or 'isn't null' from this thread. But when I tried to create for mine requirement, I wasn't able to figure out what operator I have to use for 'less than but not null or empty'. for example, I

Adding a new operator in the search dialog

感情迁移 提交于 2019-12-24 05:26:04
问题 As filter operator you can choose from among: 'equal','not equal', 'less', 'less or equal','greater','greater or equal', 'begins with','does not begin with','is in','is not in','ends with','does not end with','contains' and 'does not contain'. I'd like to add an extra operator to this list. Can somebody point me in the right direction to achieve this? The application is filtering using the dialog, and we are currently (very happily!) using free-jqgrid 4.15.0. In case you wonder about the use

How to make element sizes to fill cell sizes and increase font in free jqgrid inline and form editing

痞子三分冷 提交于 2019-12-24 03:19:52
问题 jqgrid font size is increasing according to answer from How to change the font size in jqGrid? using .ui-jqgrid tr.jqgrow td { font-size: 1.2em; } Unfortunately this does not change inline and form editing element font sizes. I'm looking for a wayto occupy whole cell contents in free jqgrid inline editing and increase font sizes in both form and inline editing. According to https://github.com/free-jqgrid/jqGrid/issues/52 I created style .jqgrid-inlineedit-element { font-size: 1em !important;