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
jquery validate integrate with jqgrid
18/08/2008
17:24
Avatar
gcousin
Villavicencio-Colombia
Member
Members
Forum Posts: 9
Member Since:
19/08/2008
sp_UserOfflineSmall Offline

Hello,

I decided to put this issue in this forum that there is no where more could put.

My concern is this:
Can I integrate with other jqgrid plugin (jquery Validate)?.
if so, how could achieve this?
I need to validate the forms to add and edit jqgrid, in a more comprehensive (as are currently available only a few basic options accounts of validation).

If I am wrong in my assessments please forgive me and any guidance in this regard will be well received.

Thank you for attention.

my English is not very good so here I leave what I am trying to say in Spanish:

Spanish:

hola,

decidí poner este tema en este foro por que no se donde mas podría ponerlo.

Mi inquietud es la siguiente:
¿puedo integrar a jqgrid con otro plugin(jquery Validate)?.
de ser asi, como podría lograr esto?
lo necesito para validar los formularios de agregar y editar en jqgrid, de una forma mas amplia(pues actualmente solo están disponibles unas cuentas opciones básicas de validación).

Si estoy equivocado en mis apreciaciones les ruego que me disculpen y cualquier orientación al respecto sera bien recibida.

gracias por la atencion.

19/08/2008
01:36
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

The short answer is - yes you can integrate other plugins with jqGrid.

Untill now I have succes with datepicker, autocomplete, tabs...

My question is  What you plan to do? Do you plan to use formedit

module? - if this is a case I think you do not need a validation plugin.

jqGrid has a build in validation of the form (need to be extended with other

types).

If you need more information plese refer to documentation.

If this does not help please ask this forum for help.

Kind 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/08/2008
09:19
Avatar
gcousin
Villavicencio-Colombia
Member
Members
Forum Posts: 9
Member Since:
19/08/2008
sp_UserOfflineSmall Offline

thank you for your prompt response,

Yes. I'm trying to use the module editing grid and add too.

try to be more specific in what I am trying to say:

I need to validate things like email's and URL's, but I find in the documentation of jqgrid, which are only available option validation ( “editrules”): edithidden, required, number, minValue, maxValue.

I suppose that would have two options:

1. Add the options I need, directly to the grid (as an addendum to make it more robust).
2. Integrate it with the plug jquery.validate validation, which is what I need to validate.

is not which of the two options is more feasible.

and to put an end to complete'm new in this framework (jquery) and even do not know many things (such as extending or integrating's plugin), therefore I am guided by the following documents:

http://www.secondpersonplural....../index.htm
http://trirand.com/jqgrid/jqgrid.html

  plugin validation that I use is:

if there is any other date or better, please Talk About It.

Thanks again for your reply … any guidance on this matter will be immensely grateful …

19/08/2008
12:01
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

If you need only email and URL's  checking I can add

it in the next release.

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/08/2008
12:43
Avatar
gcousin
Villavicencio-Colombia
Member
Members
Forum Posts: 9
Member Since:
19/08/2008
sp_UserOfflineSmall Offline

ok,  Thank you for guidance

20/08/2008
10:34
Avatar
gcousin
Villavicencio-Colombia
Member
Members
Forum Posts: 9
Member Since:
19/08/2008
sp_UserOfflineSmall Offline

hello again, as I am somewhat impatient, I take the audacity of goals to hand the file 'grid.formedit-min.js' and you add the following to validate the emails:

if(edtrul.email){var filtro = /^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.?$/i;if(!filtro.test(val)) return [false,$t.p.colNames[valref]+": No es valido"];}

Part of the 'filter' pull the plug on the validation, I believe that adding more features would not be any problem, I say this because if it was so easy to add a kind of validation not had clear that we can improve what I have Target using properties msg of the library, but for now I solved my problem.

Thanks for the plug so genial that have developed.

20/08/2008
11:43
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Thanks. Added

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.

27/10/2008
06:00
Avatar
pruss
Seefeld, Germany
New Member
Members
Forum Posts: 2
Member Since:
24/10/2008
sp_UserOfflineSmall Offline

If no other is working on integration of jqValidate we would like to do that.

Regs. Peter.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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