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
beforeSubmit
18/09/2008
14:35
Avatar
sr. R
Member
Members
Forum Posts: 4
Member Since:
18/09/2008
sp_UserOfflineSmall Offline

Hello Friends,

I am using jqGrid as well as our friend 'samymay' who posted a topic on the subject.
My question is that I want to capture the values of the fields of form and treat them as the event beforeSubmit () before you send them to the server.

Thank you, I await answers

18/09/2008
17:11
Avatar
YamilBracho
Member
Members
Forum Posts: 124
Member Since:
08/09/2008
sp_UserOfflineSmall Offline

I do not understand what you mean for "treat them as the event" but you can capture the selected row and the data inside it, say

onclickSubmit: function(params){

var gsr = $(”#grid_id”).getGridParam('selrow');

var sdata = $(”#grid_id”).getRowData(gsr);

}

HTH

19/09/2008
07:03
Avatar
sr. R
Member
Members
Forum Posts: 4
Member Since:
18/09/2008
sp_UserOfflineSmall Offline
Hello YamilBracho
Hello YamilBracho

Thank you for the answer, but are not the fields of the grid I want to capture before sending to the server, but the fields of fom: 'edit record'   (Navigator example -> Live Data Manipulation -> jqGrid Examples link http://www. trirand.com / jqgrid / jqgrid.html) that is created when we use the navigation button ( 'edit selected row') or ('add new row').

These are the fields of the new record that I am entering into the edit form that I want to validate, that is, data that are not already in the grid.

tank!
19/09/2008
07:18
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Use

beforSubmit: function(pdata) {

// do something here

}

pdata is array that contain the from the form. Also refer to docs

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/09/2008
07:31
Avatar
sr. R
Member
Members
Forum Posts: 4
Member Since:
18/09/2008
sp_UserOfflineSmall Offline

hello tony,

There I found the reference to pdata, where is it?
tanks!!
19/09/2008
07:58
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You will not need to refer to it, the data come to you and for you

You just need to use it Wink

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/09/2008
08:43
Avatar
sr. R
Member
Members
Forum Posts: 4
Member Since:
18/09/2008
sp_UserOfflineSmall Offline
 
Tony,

Everything resolved, was a success!

Exactly what I needed ...

Thanks for helping !!!

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
77 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