﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebCombo - WebCombo - How to customize Warning Dialog Box Message </title><link>http://www.intersoftsolutions.com/Community/WebCombo/WebCombo---How-to-customize-Warning-Dialog-Box-Message/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebCombo - How to customize Warning Dialog Box Message </title><link>http://www.intersoftsolutions.com/Community/WebCombo/WebCombo---How-to-customize-Warning-Dialog-Box-Message/</link><pubDate>Wed, 29 Dec 2010 09:23:43 GMT</pubDate><dc:creator>JNguimb</dc:creator><category>WebCombo</category><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Yudi's proposed solution works beautifully.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>WebCombo - How to customize Warning Dialog Box Message </title><link>http://www.intersoftsolutions.com/Community/WebCombo/WebCombo---How-to-customize-Warning-Dialog-Box-Message/</link><pubDate>Wed, 29 Dec 2010 01:32:33 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebCombo</category><description>&lt;p&gt;Hello Jean,&lt;/p&gt;&lt;p&gt;If you would like to change the message, you can simply change in &lt;b&gt;&lt;i&gt;TextSettings &lt;/i&gt;&lt;/b&gt;properties  (child WebCombo).&lt;/p&gt;
&lt;p&gt;e.g &lt;/p&gt;
&lt;p /&gt;&lt;pre&gt; &amp;lt;TextSettings ParentEmptyPromptText="{0} value should be selected" /&amp;gt;&lt;/pre&gt;
&lt;p&gt;However, you could not change the style of its style because it is browser alert.&lt;br /&gt;I suggest you to use &lt;b&gt;&lt;i&gt;WebDialogBox &lt;/i&gt;&lt;/b&gt;as the workaround. In this case, you will need to use "&lt;b&gt;&lt;i&gt;ShowEmptyResult&lt;/i&gt;&lt;/b&gt;" value in &lt;b&gt;&lt;i&gt;LinkSettings&amp;gt;&amp;gt;ParentEmptyAction&lt;/i&gt;&lt;/b&gt; properties.&lt;/p&gt;
&lt;p&gt;This value would ignore the alert or any messages. Then, show WebDialogBox in &lt;b&gt;&lt;i&gt;OnShowDropDown&lt;/i&gt;&lt;/b&gt; clientside events. By using WebDialogBox as the message, you can configure freely your message style. &lt;br /&gt;For further information, please see Yudi's reply. He posted a simple sample about how to use WebDialogBox for your scenario.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>WebCombo - How to customize Warning Dialog Box Message </title><link>http://www.intersoftsolutions.com/Community/WebCombo/WebCombo---How-to-customize-Warning-Dialog-Box-Message/</link><pubDate>Tue, 28 Dec 2010 21:04:49 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebCombo</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to show custom message on linked WebCombo scenario, you can try to use following approach.&lt;/span&gt;&lt;/p&gt;
&lt;ol style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;li&gt;Set &lt;strong&gt;ParentEmptyAction&lt;/strong&gt; property to &lt;strong&gt;“ShowEmptyResult”&lt;/strong&gt;&lt;br /&gt;By default, the value of this property is PromptMessage where the combo will prompt a message if the ParentWebCombo contains no value. If the value of this property is set to ShowEmptyResult, the combo will show empty result when the ParentWebCombo contains no value.&lt;/li&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebCombo&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebCombo&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;ID&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="wcManager"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;runat&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;="server"&lt;/span&gt; ...&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;LinkSettings&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Enabled&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="True"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;ParentWebComboID&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="wcDivision"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;ParentEmptyAction&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ShowEmptyResult" /&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebCombo&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebCombo&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;li&gt;Add a WebDialogBox to the page that will be shown when ParentWebCombo contains no value&lt;br /&gt;Add a WebDialogBox and write down the custom error message. &lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebDesktop&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebDialogBox&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;ID&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="WebDialogBox1"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;runat&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="server"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;DialogBoxImage&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="Information"&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Height&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="150px"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Width&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="400px"&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ContentTemplate&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;&lt;/span&gt;
        Please enter the Division name to continue.
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ContentTemplate&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebDesktop&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebDialogBox&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Add &lt;strong&gt;OnShowDropDown&lt;/strong&gt; client-side event handler on the ChildWebCombo (wcManager)&lt;br /&gt;The OnShowDropDown client-side event specifies the client-side (JavaScript) function that will be invoked when the ResultBox is about to show. &lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebCombo&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebCombo&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;ID&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="wcManager"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;runat&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="server"&lt;/span&gt; ...&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;LayoutSettings&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;
        &amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ClientSideEvents&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;OnShowDropDown&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="wcManager_OnShowDropDown" /&amp;gt;
    &amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;LayoutSettings&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;
    &amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;LinkSettings&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Enabled&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="True"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;ParentWebComboID&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="wcDivision"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;ParentEmptyAction&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="ShowEmptyResult" /&amp;gt;
&amp;lt;/&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebCombo&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebCombo&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;Show WebDialogBox if ParentWebCombo contains no value&lt;br /&gt;In wcManager OnShowDropDown check whether the wcDivision has value or not. If the wcDivision has no value, show WebDialogBox by invoking ShowDialog() method. &lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;function&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;wcManager_OnShowDropDown(controlId, left, top, width, height) {&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;wcDivision = ISGetObject(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"wcDivision"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;);&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;wcManager = ISGetObject(controlId);&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;WebDialogBox1 = ISGetObject(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"WebDialogBox1"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;);&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;if&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;(wcDivision.Value ==&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;""&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;) {
        WebDialogBox1.ShowDialog();&lt;/span&gt;
        &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;return false&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;;
    }&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;return true&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt"&gt;;
}&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;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.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebCombo - How to customize Warning Dialog Box Message </title><link>http://www.intersoftsolutions.com/Community/WebCombo/WebCombo---How-to-customize-Warning-Dialog-Box-Message/</link><pubDate>Tue, 28 Dec 2010 17:35:44 GMT</pubDate><dc:creator>JNguimb</dc:creator><category>WebCombo</category><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;How can I :&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;replace the original dialog box message (seen in attached screenshot) with a more meaningful message for the user, like "Please enter the Division name&amp;nbsp;to continue"; and&lt;/li&gt;&lt;li&gt;replace the original browser dialog box&amp;nbsp;with Intersoft WebDialog&amp;nbsp;to display this message, so that I can style it to fit the theme of my application.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Jean&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>