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
Hello,
How can I :
Thanks
Jean
In order to show custom message on linked WebCombo scenario, you can try to use following approach.
<ISWebCombo:WebCombo ID="wcManager" runat="server" ...> <LinkSettings Enabled="True" ParentWebComboID="wcDivision" ParentEmptyAction="ShowEmptyResult" /> </ISWebCombo:WebCombo>
<ISWebDesktop:WebDialogBox ID="WebDialogBox1" runat="server" DialogBoxImage="Information" Height="150px" Width="400px"> <ContentTemplate> Please enter the Division name to continue. </ContentTemplate> </ISWebDesktop:WebDialogBox>
<ISWebCombo:WebCombo ID="wcManager" runat="server" ...> <LayoutSettings> <ClientSideEvents OnShowDropDown="wcManager_OnShowDropDown" /> </LayoutSettings> <LinkSettings Enabled="True" ParentWebComboID="wcDivision" ParentEmptyAction="ShowEmptyResult" /> </ISWebCombo:WebCombo>
function wcManager_OnShowDropDown(controlId, left, top, width, height) { var wcDivision = ISGetObject("wcDivision"); var wcManager = ISGetObject(controlId); var WebDialogBox1 = ISGetObject("WebDialogBox1"); if (wcDivision.Value == "") { WebDialogBox1.ShowDialog(); return false; } return true; }
I enclosed one simple sample of your scenario as attachment. Please have the attached sample tested on your end and let us know whether it suits to your scenario or not.
Hello Jean,
If you would like to change the message, you can simply change in TextSettings properties (child WebCombo).
e.g
<TextSettings ParentEmptyPromptText="{0} value should be selected" />
However, you could not change the style of its style because it is browser alert.I suggest you to use WebDialogBox as the workaround. In this case, you will need to use "ShowEmptyResult" value in LinkSettings>>ParentEmptyAction properties.
This value would ignore the alert or any messages. Then, show WebDialogBox in OnShowDropDown clientside events. By using WebDialogBox as the message, you can configure freely your message style. For further information, please see Yudi's reply. He posted a simple sample about how to use WebDialogBox for your scenario.
Regards,Handy
Yudi's proposed solution works beautifully.
Thanks.
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