We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Input validation

Good morning,

I'm using EJ in a project and I need to set some client-side validation rules for each input. I'm using Datepicker, Timepicker, MaskEdit and TextBoxes.

There is anything like ejGrid validationRulesobject and setValidationToField for input too? If possible there is a way to show validation messages in a specific page area (like a div in the top of the page)?

Kind regards,
Irvin Dominin

3 Replies

GS Gobalakrishnan S Syncfusion Team December 31, 2014 12:37 PM UTC

Hi Irvin,

Query: Need to set some client-side validation rules for each input

Sorry for the inconvenience caused. Currently, we didn’t have in-built validation support to our input controls. So, we have confirmed this (“some client-side validation rules for each input”) as a bug and an issue report has been logged for this. Fix for this issue will be available in our upcoming service pack release which is expected to be rolled out at the end of January.

Please let me know if there is any concerns.

Regards,

Gobalakrishnan S



ID Irvin Dominin January 5, 2015 07:57 AM UTC

Hi Gobalakrishnan,

thanks for the reply; aside your implementation, at the moment, can I attach a validation plugin (like jQuery.validate) to EJ inputs?

With your implementation will I be able to attach the validation rules before to attach the element to the DOM? There will be the possibility to show up the validation errors in a specific div (like a validation summary)? There will be the possibility to programmatically fill up the validation summary?

Kind regards,
Irvin Dominin




HP Harikrishnan P Syncfusion Team January 6, 2015 02:21 PM UTC

Hi Irvin,

Thanks for your update.

Query: at the moment, can I attach a validation plugin (like jQuery.validate) to EJ inputs?

Yes, we can use JQuery validate plugin for validation in our EJ controls. We have attached a sample in the following location to showcase this requirement.

Sample Location : JQuery validation to validate EJ controls

Query: With your implementation will I be able to attach the validation rules before to attach the element to the DOM? There will be the possibility to show up the validation errors in a specific div (like a validation summary)? There will be the possibility to programmatically fill up the validation summary?

Yes, we can be able to specify the validation rules. We will provide support to specify the validation rules as provided in our EJGrid control. Also, we can specify the error messages in the required area and we will also provide option to programmatically specify the validation rules for the particular component.

Please let us know if you need further assistance.

Regards,

HariKrishnan



Loader.
Live Chat Icon For mobile
Up arrow icon