Thanks Tony
My javascript code is:
afterSubmit: function(serverStatus, aPostData) {
Now I am returning [false,”Banco ya existe”,””]
But still got the same error message:
ret is undefined
complete()()grid.for…it-min.js (line 18)
complete()jquery-1….6.min.js (line 29)
handleError()()jquery-1….6.min.js (line 29)
[Break on this error] if(ret[0]==false){$(“#FormError>td”,”#”+…erEdit)$($t).setSelection(postdata.id);}
I think that the error is what I need to pass something in the aPostdata array because I think if the first element in the response it is false, the code needs to show the field with error.
Am I right ? If so, how I pass an array in aPostData ?
I am not sure but I think the problem is the NavigationBar, you are combining two ways to edit, so take out the navigatioon bar and test it.
In Spanish.
Quita la opcion del NavigationBar y chequea el ejemplo “editing”. Fijate que cuando editas por un boton no tienes las opciones del NavigationBar
HTH
Tony, I build my returned string as :
sb.append( “[{status:\””).append(BooleanUtils.toStringTrueFalse(this.isStatus()));
It's strange. I used and it works OK. My includes are:
Maybe it is the “Jquery.js” file your are including in..
Put at the begining of your JSP
<%@ page contentType="text/html; charset=iso-8859-1"
I am using jqGrid
THANKS A LOT, Tony…!
It works like charm…
Thanks Tony. I wrote:
Thanks Tony but it does not work.
Anyway I pass the id using editData in the beforeSubmit event and works ok…
I would like to get information from the searchGrid module like “searchString”and so on.
How do i get access to this information ?, say
|
1 |
jQuery(<span class="codestring">"#grid_id"</span>).searchGrid("searchString") ? |
I did solve by storing the result list in a session variable.. I don't like that…Any hint to do this ?
Hi.
You have to call your server code by yourself using an AJAX call or a window.open() javascript. For example in a custom button I export my grid to excel and then I use window.open to call a server side code this way:
I have:
I have:
rows :[
{id: “11”,cell:[“11”,”ADMISTRACI
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top