Forum


15:23

13/01/2010

Hi
As I understand it, when adding a record, the add pop up will display with the columns based on the column model of the grid
If an internal server error or http request/response error occurs, the error is displayed at the top of the add popup screen & the previously entered information is kept and displayed.
In certain situations where the business logic does not allow a record to be added (due to functionality contraints), I return a message key in my json object which I will display to the user(my response status is 200 and OK in these situations).
However, my problem is that I display this error in the main page and as such the add pop dissapears. This means when the user wants to add that record again, they have to type it out again. This is very cumbersome & not user friendly.
I would like to keep the add pop still in place, check my message key in the json response, if it contains an error, then display that message in the add pop with all the information entered by the user stil there (basically do exactly what happens when there is like an Internal Server error).
how can I accomplish this? any ideas?
Your help is very much appreciated on this..
20:22

Moderators
30/10/2007

Hello,
I preffer you to read carefully the options for the add dialog. Especially you can pay attention on the followig options:
closeAfterAdd and clearAfterAdd.
http://www.trirand.com/jqgridw.....ditgridrow
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
01:27

13/01/2010

I have visited the link and know that I need to use events to inspect the result from the server.
I am using the strut2 Jquery plugin. Does anyone know how I can call these events listed usiing this plugin? Its not clear on how to call events on the default Add button supplied with jqgrid.
There is a 'navigatoraddoptions' you can set for the grid but I presume that is where you set the properties & not the events.
So how do I set the event?
any help is appreciated. thanks.
Most Users Ever Online: 715
Currently Online:
43 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66