Welcome Guest Search | Active Topics | Sign In | Register

toolbar x Client Validation Options
bobwolf
Posted: Monday, August 18, 2008 8:14:22 AM
Rank: Member
Groups: Member

Joined: 5/31/2008
Posts: 25
Hi!

My webpage uses eo:ToolBar and some validators (asp:RequiredFieldValidator and asp:CustomValidator). The problem is that the client validators are not called when I click toolbar buttons and the page is submited without validation.

Is there any property that i've missed?
Using an asp:Button the validators are called......


Tks in advance!
bob.
eo_support
Posted: Monday, August 18, 2008 8:30:28 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
Hi,

Currently it does not do that. In the future we probably will add a CausesValidation property to the ToolBar and with that you can control whether the toolbar causes validation or not.

Thanks!
bobwolf
Posted: Monday, August 18, 2008 8:33:26 AM
Rank: Member
Groups: Member

Joined: 5/31/2008
Posts: 25
Is there any workaround to call client validation from toolbar click?

tks!
eo_support
Posted: Monday, August 18, 2008 8:41:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
Yes. I believe you can always handle the click event on client side (you want to check the documentation for how to handle client side JavaScript event if you are not familiar with that yet), inside your event handler you can manually call Page_Validate(). Page_Validate is a function provided by ASP.NET that calls the validator.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.