Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Add Record Popup(Modal) question on re-population..
12/04/2010
15:23
Avatar
ram2010
Member
Members
Forum Posts: 43
Member Since:
13/01/2010
sp_UserOfflineSmall Offline

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..

14/04/2010
20:22
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

19/04/2010
01:27
Avatar
ram2010
Member
Members
Forum Posts: 43
Member Since:
13/01/2010
sp_UserOfflineSmall Offline

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.

19/04/2010
02:17
Avatar
ram2010
Member
Members
Forum Posts: 43
Member Since:
13/01/2010
sp_UserOfflineSmall Offline

just figured it out!... you put it in 'navigatoraddoptions'

so just like the properties you put the events in the same way!

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information