You can use the trick when using aftersave function in saveRow method.
Something like this:
var myaftersave = function(id){
var getrow = $(“#mygrid”).getRowData(id)
// do something here
}
then the calling
$(“#mygrid”).saveRow(id,tue,'','','','',myaftersave)
The only restriction is that this fires after you save the row
Hi again,
If I look into the code there is some bug here. Thank you. It will be corrected. The reason is that all values (except subgrid and multi select) are pushed in saved array, but I restore only these values that are editable.
Again Thanks
Regards
Tony
Hello,
Set this column as editable – i.e. editable:true, instead that it is hidden and the value will be restored.
Regards
Tony
If you have download the 3.2rc there is a readme.txt on how to upgrade. You need to add some code in css
Regards
Tony
Do you mean grid as subgrid or only subgrid?
Tony
If I understand right you use booth form edit and inline edit for one grid.
In editRow and saveRow methods there is a parameter url. Use this parameter for these methods.
Regards
Tony
If you have download the 3.2rc there is a readme.txt on how to upgrade.
You need to add come code in the used css.
Regards
Tony
Use loadError(xhr,st,err) event more info in this forum topic Releases
Regards
Tony
Use loadError(xhr,st,err) event to determine if you have error from
the server. More information you can find in this forum in topic Releases
Regards
Tony
Ok.
I recommend you to use a editurl option. Let suppose that the master grid has master id and detail has a detail id, then (in your case) you can use
a beforeShowForm event (3.2 version) to do that
Here is a piece of code:
jQuery(“#detail”).jqGrid({…}).navGrid(“#pgdetail”,{…},
{…}, //edit
{…
beforeShowForm: function(formid) {
// we should get the id of the master here
mid = jQuery(“#master”).getGridParam(“selrow”);
if (mid != null ) {
// now we can set it in editurl
jQuery(“#detail”).setGridParam({editurl:”myurlhere.php?masterid=”+mid});
}
}
….
Regards
Tony
loadonce parameter load the data from server only once and then the processing is at client side – i.e. the datatype is set automatically to clientSide
Refer to docs for more info
Regards
Tony
Sorry there is mistake
the right is:
$sortname = $_GET['sidx'];
$sortorder = $_GET['sord'];
You should pass in your SQL a ORDER BY cluse to sort have effect.
Example (php code)
$sorcol = $_GET['sortname']; // this is taken from grid and then
$sortorder = $_GET['sortorder'];
$SQL = “SELECT * FROM mytable ORDER BY “.$sortcol.” “.$sortorder;
My simple question is?
What you have? already constructed xml file or a data constructed from
a SQL query?
DataTypes->JSON Data->JSON – somewhere in the middle of the page
Reagrds
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top