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
close icon

Toolbar and Validators

Hi,

I am having some problems with the Toolbar, i am using the toolbar in an application and one of the buttons on the toolbar is a save button.

I want the save button to fire off my validators but it doesnt seem to work, and there is no CausesValidation property on the toolbar items.

Could you explain how i can get the toolbar buttons to fire my validator controls prior to posting back to the server


1 Reply

MW Melba Winshia Syncfusion Team April 3, 2009 12:19 PM UTC

Hi Neil,

Thank you for your interest in Syncfusion Products.

We do not have CausesValidation property for the toolbar items. But you can use Page.Validate() method to Validate Page in toolbar item click event. Please refer the sample in the below link which illustrates the above:

http://files.syncfusion.com/support/samples/Tools.Web/7.1.0.21/F80431_ToolbarValidator/main.htm

Please try this and let me know if this helps.

Thanks,
Melba


Loader.
Live Chat Icon For mobile
Up arrow icon