iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
We have a standard "find" form that has required fields. We have a standard Find navigation button that will cause validation on those fields.
We're implementing a WebMenuBar for other usage to navigate out of the "find" page to elsewhere and this is causing the required fields to keep us from going out of this form.
There as no property on WebMenuBar like CausesValidation, so I need to know how I can turn off validation on the form for WebMenuBar since we don't care if the user entered anything on the form when using the menu items on this menu. Thanks.
As a workaround for such scenario, you could try using ValidatorEnable(val, enable) function, as detailed in ASP .NET validation in depth, during OnClick client side item command event handler.
In my test, I am using ASP .NET required field validator and during item command click, I could disable the required field validator using this snippet:
function WebMenuBar1_OnClick(ctrlId){ ValidatorEnable(RequiredFieldValidator1, false);}
Glenn,
Would you please attach the sample you used for this? Thank you.
Here is the simple sample I used to disable validation on postback WebMenuBar.
Thanks Glenn. By the way, I did get what I needed working per your suggestion. It tricky though, because disabling all the validators meant we have to reenable them after the partial-page post back.
Note that you can't just reenable them after the partial-page postback completes because enabling also activates them, i.e., their respective visual message all display. You basically have to assign a client-side handler that reenables them to any button that requires the page validation to occur.
This is why we really need the WebMenuBar control to use a property like CausesValidation so we don't have to have such a messy workaround. I hope you can forward this to your development team please. Thanks again.
I will forward your comment to the development team, hopefully thet will consider this feature for future build / version of WebDesktop.
Hi Glenn,
Has this been added to 2011 R1?
Hi Yousif,
Unfortunately, this feature has not been implemented yet.
Regards,Handy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname