jqGrid with an editable checkbox column

To allow the checkboxes to always be click-able, use the checkbox formatter’s disabled property: { name: ‘MyCol’, index: ‘MyCol’, editable:true, edittype:’checkbox’, editoptions: { value:”True:False”}, formatter: “checkbox”, formatoptions: {disabled : false} , … To answer your second question, you will have to setup an event handler for the checkboxes, such that when one is clicked a … Read more

jqGrid does not render correctly in Chrome/Chrome Frame

I updated today my Chrome to version 19, have reproduced the problem and made the corresponding quick&dirty fix: I suggest to change the line of jqGrid code isSafari = $.browser.webkit || $.browser.safari ? true : false; to the following isSafari = ($.browser.webkit || $.browser.safari) && parseFloat($.browser.version)<536.5 ? true : false; // Chrome < version 19 … Read more

Wrapping Text lines in JqGrid

Try the following CSS: .ui-jqgrid tr.jqgrow td { white-space: normal !important; } This works for me using jqGrid 3.6. As N30 pointed out, jqGrid 4.0 now supports a cellattr colModel option which can allow for a finer grain of control over text wrapping. From his example: cellattr: function (rowId, tv, rawObject, cm, rdata) { return … Read more

Hidden Columns in jqGrid

This feature is built into jqGrid. setup your grid function as follows. $(‘#myGrid’).jqGrid({ … colNames: [‘Manager’, ‘Name’, ‘HiddenSalary’], colModel: [ { name: ‘Manager’, editable: true }, { name: ‘Price’, editable: true }, { name: ‘HiddenSalary’, hidden: true , editable: true, editrules: {edithidden:true} } ], … }; There are other editrules that can be applied but … Read more

How to filter the jqGrid data NOT using the built in search/filter box

You problem can be very easy solved with respect of postData parameter including functions and trigger(‘reloadGrid’). I try explain the idea more detailed. Let us use mtype: “GET”. The only thing which standard search/filter box do after displaying the interface is appending of some additional parameters to the url, sending to server and reloading the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)