hendisantika / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 1 forks source link

Enable 3rd party validation plugins #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
So far, I'm loving the functions here, but would like to have the ability to 
use a 3rd party validation plugin for addition and modification of records.  Is 
it possible to either strip out the validation plugin you provide, or to enable 
another plugin via some configuration option?

What version of the product are you using? 
1.2.4

Original issue reported on code.google.com by dmol...@gmail.com on 6 Jun 2011 at 6:36

GoogleCodeExporter commented 8 years ago
Hi,

In theory no. On few points in code I'm caling form.valid() (in the add method) 
and input.valid() in the edit method. So if you are not using validator, this 
code will break. I'm using JQuery Validation plugin that has many options for 
customization (see
http://bassistance.de/jquery-plugins/jquery-plugin-validation) and I believe 
that you can implement lot of custom validation rules using this plugin. 
Therefore I have not created any customizable option to switch on/off plugin 
and replace it with something else. If you find some other validation plugin 
that has some feature that cannot be implement in this one I might consider 
creating a modular validation.

However if you implement your own validation plugin if it attaches valid() 
methods to the forms and inputs it might work even if it is not a standard 
bassistance validation plugin.

Regards,
Jovan

Original comment by joc...@gmail.com on 6 Jun 2011 at 8:33

GoogleCodeExporter commented 8 years ago
Ah, ok, I wasn't aware of what plugin was used.  What version of that plugin is 
used? I'm guessing 1.8.1?  

Original comment by dmol...@gmail.com on 7 Jun 2011 at 12:41

GoogleCodeExporter commented 8 years ago
In your example documentation, you have shown how to validate in-line editing 
of cells, but I'm looking to validate the popup form for the addition of new 
entries.  Can you give an example of how that would be done?

Original comment by dmol...@gmail.com on 7 Jun 2011 at 2:36

GoogleCodeExporter commented 8 years ago
You can see example on the 
http://jquery-datatables-editable.googlecode.com/svn/trunk/addingrecords.html. 
Just add validation classes on the form elements and plugin will call validate 
method before form is posted.

Original comment by joc...@gmail.com on 10 Jun 2011 at 11:48

GoogleCodeExporter commented 8 years ago
i've actually got it working. once i get the complete app finished, i will post 
a link here. it uses jquery, jquery ui, datatables, datatables editable, and 
the validation plugin with lots of ajax.

Original comment by dmol...@gmail.com on 11 Jun 2011 at 12:22

GoogleCodeExporter commented 8 years ago
this can be closed, no action is required on your part. when i finish my 
application, i will send you a link to a demo version of it that you can 
highlight here.

Original comment by dmol...@gmail.com on 12 Jun 2011 at 1:26

GoogleCodeExporter commented 8 years ago
Thanks, I'm closing this issue.

Regars,
Jovan

Original comment by joc...@gmail.com on 12 Jun 2011 at 9:48