Hello,
It is possible and I use this technique in all my projects.
afterSubmit : function (data, postdata) {
// data is the data returned from your server
// postdata is the array posted to the server
// this event should return array indicating if the post is ok
// Suppose you return text from server something like
// error: The post has error for error; and ok:data is ok if ok
// then
result = data.responseText.split(“:”);
if (result[0] = “error” ) {
return [false,result[1],””];
} else {
return [true,””,””];
}
Hope this help
Regards
Tony
Hello,
Use the sorttype property in colModel. Also refrer to docs.
Regards
Tony
Hello,
Sorry it is my bad. The option is for filterGrid.
Also when the cell is edited and saved I use addClass(“dirty-cell”)
When you wan to remove this you can removeClass(“dirty-cell”)
also you can use hasClass too to determine if the cell is dirty.
To get these cells use getChagedCells('dirty') method
Regards
Tony
Hello,
Thank you for shering the code with the community.
Regards
Tony
Hello,
Local filtering and search currently is not supported.
Regards
Tony
Hello,
Try
onclickPgButtons : function (which, formid, rowid) {
$(“#sData”,formid).trigger(“click”);
}
Regards
Tony
Hello,
It is quite possible.The max size of cookie is browser depended.
Regards
Tony
Hello,
The most common problem here is maybe that you have no consistency in the colModel and data returned from server – i.e you have in the data more columns, but not in colModel
Regards
Tony
Hello,
One additional note
hidden:'true' will never work – instead use
hidden:true
Regards
Tony
Hello,
I think you should construct the grid first and then use another url to obtain the data. If your data and grid are in the same php call page nothing will be happen. To avoid this you can solve this using datastr parameter first. Read the docs.
Regards
Tony
Hello,
In the upcomming release 3.4 there will be a method that save the data locally without using the ajax.
Regards
Tony
Hello,
There is documentation. From this site Click on Documentation and then
jqGrid->Form Editing->Edit Row – look at events there is example.
In your case
jQuery(”#editgrid”).editGridRow(gr,
{width: 400,
height:280,
modal:false,
reloadAfterSubmit:false,
onInitializeForm : function (formid) {
// your code goes here
}
});
Regards
Tony
Hello,
Currently I can not reproduce this in my IE7
Regards
Tony
Hello,
I never try, but you can experiment with height in setLabel something like
setLabel(0, “Invoice Number” ,{color:'red', 'text-align':'center','font-size':'15px', 'word-wrap': 'break-word', height:'30px'})
Regards
Tony
Hello,
In your case you will have checkbox when you edit the data. To solve this use the new formatter. You just need this:
{ name:
'BD', index: 'BD', width: 40, align: 'center', sortable: false,
formatter:'checkbox',editoptions:{value:“true:false”}},
I.e replace edittype with formatter. Do not forget to include the jquery.fmatter.js from 3.4 beta.
Regards
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top