|
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.
|
|
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!
|
|
Rank: Member Groups: Member
Joined: 5/31/2008 Posts: 25
|
Is there any workaround to call client validation from toolbar click?
tks!
|
|
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
|
|