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
Validation before submit
18/09/2008
09:24
Avatar
Samymay
New Member
Members
Forum Posts: 2
Member Since:
18/09/2008
sp_UserOfflineSmall Offline

Hello, We are using the jqgrid as reading and editing datas, but we are having some troubles.

How we can make value test by variables fileds in the form (How we can see on the demo: Navigator on Live Data Manipulation in  http://www.trirand.com/jqgrid/.....qgrid.html), wen the little form is opened for edition.

In this case, the avaliable verifications (max value, min value, requeried value, etc.) don´t are enought to us, we have some customs verification that must be performed before data submition to server.

How can be captured the values of the fields, in the moment that is change or before be submeted.

Thanks regards,

18/09/2008
09:47
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

This can be extended easy.

Open the grid.formedit.js and find the function

function checkValues(val, valref)

You will have idea how easy you can extend this.

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.

18/09/2008
13:44
Avatar
Samymay
New Member
Members
Forum Posts: 2
Member Since:
18/09/2008
sp_UserOfflineSmall Offline

Hey man, worked fine !!!!!

Many thanks ...

One more question. If I want to make the same on inline edition, have some function for validation, or another method to do my custom validation ?

Thanks regards from Br

19/09/2008
00:37
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

For inline editing there is no validation, but you can use

saveRow method and make you own validation here.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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