free-jqgrid

Free jgGrid show add button on pager

非 Y 不嫁゛ 提交于 2019-12-11 16:18:08
问题 I am setting up a simple jqGrid, and will have inline editing and deleting, but now trying to make the add button show up on the pager. I will start with the default add action, but I can't seem to remember how to make the add button show there, and I would like to know the clean way to do it on free jqGrid. Here is the current code. Thanks. $('#press_op_setup').jqGrid({ url:'grid.php', postData:{ 'arg1':'press_ops' }, height: 'auto', datatype: 'xml', mtype: 'POST', width: 400, colNames:[ 'id

How to avoid jQgrid initial AJAX request?

烂漫一生 提交于 2019-12-11 15:51:33
问题 I am having some fun with jQgrid but now I need to achieve something that I am calling "advanced" since I don't even know if this is a non-sense or if it can't be done but here we go. Let's think in a page with a SELECT element which will turn into a Select2JS later on and also with a normal INPUT element which will be used to perform a search. See image below (the INPUT isn't show yet cause this is WIP). The page contains also a grid (jQgrid) as you can see on the pic above. I would like to:

How to set grid post param dynamically and trigger reload with the new URL?

限于喜欢 提交于 2019-12-11 15:30:02
问题 I have the following jQgrid Free (version: 4.15.2) definition: $(document).ready(function () { var $load_form = $("#load_form"), $form_id = sessionStorage.getItem('form_id') === null ? 1 : sessionStorage.form_id, $questions_grid = $("#questions"); $(document).on("click", $load_form, function (ev) { // get the new form_id value and reload the grid by passing // the new form_id as post parameter for the AJAX request }); $questions_grid.jqGrid({ url: '/ajax/questions/get/' + $form_id, datatype:

jqGrid free and ace admin template integration

二次信任 提交于 2019-12-11 13:48:15
问题 I'm trying to play around with various admin templates and ran on to an old Bootstrap 3 one which has jqGrid support. While the demo is working great but it uses the commercial version and not the free jqGrid. In the link to the repository of source of the demo here (Ace Admin Template), the main file is call jqgrid.html, if I use the most recent free jqGrid as shown below, then the attributes of the button images are no longer working. See the attached pictures. Tests with commercial jqGrid:

how to fix exception in filterToolbar in latest free jqgrid

痞子三分冷 提交于 2019-12-11 12:39:56
问题 Jqgrid filter toolbar is created using $(function () { $grid.jqGrid('filterToolbar', { // this is line myapp.js:797 in stack trace below stringResult: true, searchOnEnter: true, defaultSearch: 'cn' }); }); Using latest jqgrid from github this causes error in filterToolbar : Uncaught TypeError: Cannot read property 'toUpperCase' of undefined url http://localhost:52216/admin/Scripts/jqgrid/js/jquery.jqgrid.src.js lineNumber 8924 column 24 How to fix this ? Stack trace is below. TypeError:

Free jqGrid 4.8.0 - Issue with autoResize

∥☆過路亽.° 提交于 2019-12-11 12:38:23
问题 I finally was able to upload the bug into jFiddle after days of trying to re-create it. I noticed this since I ported from 4.7.0, but couldn't pin-point the exact issue. The jFiddle describing the issue is at jFiddle demo This is the problem: If you set autoResize to true, and if the number of lines in the grid are longer than the grid height (so that you start to see the overscroll on the right), with every double click you will do on the column to auto resize it, the entire grid will shrink

jqGrid add multi select column filter to a specific column

蹲街弑〆低调 提交于 2019-12-11 12:13:39
问题 I am trying to add the multi-select filter to my PROVIDER column in the jqGrid . I am able to add the select filter but now I am converting it to the multi-select filter. I referred to a few old posts here and tried to do the same. It's not throwing me any error but it is not creating the multi-select filter also. Please let me know what I am doing wrong below. I am able to get the unique values and able to create the SELECT list, I am guessing something is wrong with function

Free jqGrid 4.8.0 - Add buttons to toolbar

笑着哭i 提交于 2019-12-11 11:42:19
问题 I learn there is an option to add a toolbar to the grid by adding toolbar:[true.'top'] (example for adding an empty toolbar to the top of the grid). How do I add buttons to that toolbar? I know how jqGrid('navButtonAdd', nameOfPager) works and also familier with the toppager options, but don't know how to add buttons to the toolbar I just mentioned above. Thanks, 回答1: jqGrid have no API for manipulation of the toolbar: [true, "top"] . The only goal of the toolbar is a <div> inside of jqGrid.

Free jqGrid 4.8.0 - Setting the total number of paging post grid reload

倖福魔咒の 提交于 2019-12-11 11:41:33
问题 due to the bad performance on count(*) with our DB (when we deal with 50M records), we don't want to return back to total number of records in each slice of records we retrieve. Instead we want to work without it. I could set the total number of records to be MAX_INT for that matter within jsonReader:{records: MAX_INT}, but I want to make this better. What I would like to do is to set the records for MAX_INT when the grid loads (that part I know how), but in parallel initiate a call for count

How to clear filter value in toolbar if row is removed from advanced search dialog

孤街醉人 提交于 2019-12-11 10:18:18
问题 Free jqgrid does not clear values in filter toolbar if they are removed from advanced searxh dialog. To reproduce, open advanced searcg dialog in http://www.ok-soft-gmbh.com/jqGrid/OK/formEditOnDoubleClick-jqueryui-fa-bootstrap.htm and delete both conditons by clicking in minus button After pressing find button search toolbar still contains those values. how to fix this ? 回答1: Thank you! I didn't thought about the scenario. It's a bug. I posted now the corresponding fix to GitHub. The demo