Forum
Topic RSS
00:29
13/10/2010
OfflineI have what will ultimately become allot of pages using jqgrid. Problem I am having is validating the data. I cannot find any kind of good code that explains how to do this. What I suppose should be simple, maybe is not.
All I want to do, is submit update/insert to the server and return error information the user can understand. Add a little paragraph at the top of the form, like the 404 error will when there is no page. Very frustrating, cannot a hammer this out. I added loadError and that does not respond, but gridComplete loadComplete work fine.
I am pretty new to jqGrid and I have spent A HUGE amount of time going through this issue.
Thanks.
18:20
13/10/2010
OfflineAfter a ton of seraching and agonizing pain :), this was the solution (BELOW). The problem for me was (NOT raggin on doc, for open source, doc is FANTASTIC!, better then most commercial docs!) where in the documentation could I have found this? I found the answer somewhere on the net.
When I looked at the form editing docs, there wasn't any mention of this. Not a rag on docs, my question really is, where in the docs could I have found this infomation about how to setup events for each type of submit?
* Do want to STRESS, that not ragging on docs, they are really good. I am pretty to new jquery / grid and still feeling my way around.
Also order was important.
del: true,
add: true,
edit: true,
Is the opposite order of the methods. { Aftersubmitupdate } Switch del:true with edit:true then different call is made.
jQuery("#toolbar").jqGrid('navGrid', '#ptoolbar', {
del: true,
add: true,
edit: true,
search: false,
},
{
afterSubmit:submitUpdate,
},
{
afterSubmit:submitAdd,
},
{
afterSubmit:submitDelete,
}
);
keywords: form event jqgrid aftersubmit delete insert update
Most Users Ever Online: 994
Currently Online:
14 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
Log In
Home