Skip to main content

Posts

Showing posts with the label jqgrid

Get the jqGrid colModel

How can I get the entire colModel for a jqGrid element? I've gone through the source code a bit and also played around with some tests, but nothing seems to return the actual array.

JQGRID: any easy way to implement undo on excel like jqGrid implementation

Just to give little update before putting my question.... I've been able to come up with some additional features on the jqgrid that I'm using (after going through many forums) including: copy-paste back and forth from Excel to jqgrid, edit cell on keypress and dblclick, copy and paste multiple cells from one block to another on the same grid using mouse selection (from here Using Javascript to 'sum selected cells' in IE6 ) Most of the copy paste features works on IE only as of now. I save all the changes together on "Save" button click so all the updates on the cells are on screen only until user hits the "Save" button. Although, things are still in flux right now, I'd like to have the implementation design on paper now than later. I'm looking for an easy way to UNDO only the LAST change. I've been thinking of using jQuery's "data()" and "removeData()" methods to implement this but if there is anything al

Multiple jqGrids fires ajax call for every jqGrid on page

I have three grids each has a unique: pager, ID, and wrapper. These grids are hidden by default and show upon selection of a dropdown box. At page load, before anything is selected, jqgrid makes three ajax calls for its data, but after debugging it appears that each grid makes three calls, one for each of the grids on the page. I would like each grid to only request its data for its own grid. Typically the first grid times out and the other two work flawlessly. I believe that the first one may bog down the number of connections to the server causing it to timeout and then the others are then free to proceed because they are below the max number of connections. Any thoughts, ideas, or suggestion are greatly appreciated.

JqGrid - Simple Searching With Additional Field(s)

i am using jqgrid and have simple searching enabled. i am wondering if there is a way to add an additional item in the select list of fields that does not exist as a column in the grid. i would call it something like 'Any Field' so i could search on any of the fields and then handle that outcome server side. thanks grant.

JqGrid - Simple Searching With Additional Field(s)

i am using jqgrid and have simple searching enabled. i am wondering if there is a way to add an additional item in the select list of fields that does not exist as a column in the grid. i would call it something like 'Any Field' so i could search on any of the fields and then handle that outcome server side. thanks grant.

jqgrid - close form dialog

I am using jqgrid 4.3.1 and I am using form editing with local data. The problem is the form does not close after adding or editing. Here is my code. $('#studentset').jqGrid({ data: mydata, datatype: "local", colNames:['id','First Name', 'Last Name'], colModel:[ {name:'id',index:'id', width:60}, {name:'firstName',index:'fName', width:300, editable:true}, {name:'lastName',index:'lastName', width:300, editable:true} ], pager: '#pager', rowNum: 10, rowList: [5, 10, 20], sortname: 'id', sortorder: 'asc', viewrecords: true,

how to disable data retrieval on jqgrid load

jqgrid is used to show stock status from server. Data is retrieved in json format using controller in url parameter: url: 'Grid/GetData' Getting data (even 0 rows) takes some time. This causes noticeable delay on page load. How to disable GetData controller call on initial jqgrid load? On initial load empty grid should appear, without rows. Data should retrieved if such command is issued by user: search criteria is entered enter is pressed in search toolbar refresh button in jqgrid toolbar is pressed.