Menu
  • HOME
  • TAGS

Condtional editable depend on the value in colModel jqGrid

jqgrid,jqgrid-php

The most easy way to implement the requirement would be to use free jqGrid. It's the fork (based on jqGrid 4.7) which I develop currently. Because of such requirements I implemented the feature described in the wiki article. It allows to define editable property as function. So you need just...

jqGrid Change the value of a field on beforeShowForm

jquery,jqgrid,jqgrid-php

You don't use hidden: true property of volume column. So the setting $('#tr_volume',form).show() is unneeded. The setting of $("#tr_volume",form).val('1') is wrong, because the <tr> element have no value. I think that you need jusu use $("#volume",form).val('1') or $("#volume").val('1') instead. The <input> field with the id="volume" (the same id like the...

JqGrid: Fetch count of selected rows and add Column value

jquery,jqgrid,jqgrid-php

I'm not sure what value you have to fill in myrow, but I suppose that you need modify you code to use something like the following var myrow = [], i; ... for (i=0; i<id.length; i++) { myrow.push(jQuery("#grid").jqGrid('getCell', id[i], 'dm')); } myrow = myrow.join(); // create comma separated list with...

jqGrid Sorting by date and time, but displaying only date

sorting,date,jqgrid,jqgrid-php

The option sorttype will be used by jqGrid only during local sorting. If you use datatype: "json" without loadonce: true then jqGrid just desplays one page of data sorted on the server side. If the user clicks on new page button or on the column header to sort the column...

How to remove the shadow after delete the row in jqgrid?

jquery,jqgrid,jqgrid-php

You use very old demo which uses $("#delmod" + grid[0].id).hide();. Replacing the call of .hide() to the call of $.jgrid.hideModal will solves the problem (see the old demo). See the answer, this one or the answer