Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
UltraWebToolbar, TBarButton and validation
posted

I have a question regarding the UltraWebToolbar control and client-side validation. I only found the CausesValidation property on the UltraWebToolbar control instead of the property being on the individual TBarButton (and other items). This seems like poor design and I really hope I'm just missing something obvious here.

Imagine the following scenario - a web form with some fields, a toolbar with a Save and Close buttons on it. Save should cause validation, Close shouldn't. Right now I had to set CausesValidation to false on the toolbar and then call the ASP.NET validation methods manually in the handler for the Save toolbar button, and this is a really annoying workaround - I actually have a lot of pages with a lot of buttons in toolbars.

Any tips on how to handle such scenarios?

Thank you in advance.