How to merge cells in jqGrid 4.0

I find your question very interesting, so +1 from me. It seems to me that the usage of colspan=2 is what you really need. To have the same number of the columns in the rows having colspan=2 I suggest to hide the next <td> element in the row: { name:’a’,index:’a’, width:50, cellattr: function(rowId, tv, rawObject, … Read more

How to get jqGrid reload to go to server?

You are not the only person which has the problem. I answerd to the same question before. To reload the grid content from the server you should reset the datatype parameter to original value “json” or “xml” and then refresh the grid. For example jQuery(“#list”).jqGrid(‘setGridParam’,{datatype:’json’}).trigger(‘reloadGrid’); UPDATED: To call the line inside of beforeRefresh event handler … Read more

jqgrid add row and send data to webservice for insert

First of all you can change some default options used for add/edit: jQuery.extend(jQuery.jgrid.edit, { ajaxEditOptions: { contentType: “application/json” }, recreateForm: true, serializeEditData: function (postData) { if (postData.exercise_value === undefined) { postData.exercise_value = null; } return JSON.stringify(postData); } }); (where JSON.stringify is the functions defined in http://www.json.org/js.html). Then the data, which will be send to the … Read more

jQuery modal dialog and jqGrid

The following code could do what you need $(“#wics”).click( function(){ var grid = jQuery(“#list10”); var ids = grid.jqGrid(‘getGridParam’,’selarrrow’); if (ids.length>0) { var names = []; for (var i=0, il=ids.length; i < il; i++) { var name = grid.jqGrid(‘getCell’, ids[i], ‘Name’); names.push(name); } //alert (“Names: ” + names.join(“, “) + “; ids: ” + ids.join(“, “)); … Read more

jquery with ASP.NET MVC – calling ajax enabled web service

Your main problem is that you use not absolute URLs in the ajax call. Wrong entries in web.config can make also problems. Moreover you use datatype: getMovies instead of datatype: ‘json’ and postData: yourData. The way with datatype as functions exist (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data#function), but since jqGrid 3.6.5 you have more direct way inside of jsonReader … Read more