Webcombo disappears in WebDialogBox

1 reply. Last post: November 12, 2013 10:04 PM by Hans Kristian
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
luwen zhangMember

Hi,

I put a webcombo inside a WebDialogBox. The webCombo is populated from JSON on page load. It looks fine. But when the focus is moved to the buttons on WebDialogBox, the Webcombo disappears, and can not show again. How to avoid that? Here is the code:

<ISWebDesktop:WebDialogBox ID="dlgLookup" runat="server" Text="Lookup TaxCode" Width="400px" Height="150px" DialogBoxImage="None">
<ContentTemplate>
       <ISWebCombo:WebCombo ID="comboLookup" runat="server" BindingOperationMode="ClientBinding" DataTextField="Value" DataValueField="Key" ViewStateStorage="None" Width="360px" UseDefaultStyle="True">    
       <Columns>
       		<ISWebCombo:WebComboColumn Name="text" BaseFieldName="Value" HeaderText="Item Text" DataType="System.String"/>
       </Columns>                                      
       <LayoutSettings EntryMode="AutoComplete" StatusBoxVisible="false" ComboMode="SingleColumn">
       </LayoutSettings>  
       <FlyPostBackSettings PostHiddenFields="true" PostInputControls="true" />
       <ClientBindingSettings DataSourceType="ClientDataSource"/>                            
       </ISWebCombo:WebCombo>
</ContentTemplate>
<WindowSettings AllowResize="Yes">
            <CommandButtonStyle>
                <Active CssClass="clsSmallButton" Font-Bold="true" />
                <Over CssClass="clsSmallButton" Font-Bold="true" />
                <Normal CssClass="clsSmallButton" Font-Bold="false">
                </Normal>
            </CommandButtonStyle>
            <ContainerStyle CssClass="clsBgTable">
                <Padding Bottom="2px" Left="2px" Right="2px" Top="2px" />
            </ContainerStyle>
            <WindowStyle>
                <Active BaseStyle="Normal" BorderColor="Gray" />
                <Normal BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                    Font-Names="Tahoma" Font-Size="8pt">
                </Normal>
            </WindowStyle>
            <CaptionStyle>
                <Active BackColor="#766C62" BaseStyle="Normal" />
                <Normal BackColor="Gray" Font-Bold="True" Font-Names="Tahoma" Font-Size="10pt" ForeColor="White">
                    <Padding Bottom="2px" Left="2px" Right="2px" Top="2px" />
                </Normal>
            </CaptionStyle>
            <CaptionButtonStyle>
                <Active BaseStyle="Normal">
                    <BorderSettings>
                        <Top Color="Gray" />
                        <Left Color="Gray" />
                    </BorderSettings>
                </Active>
                <Over BaseStyle="Normal">
                    <BorderSettings>
                        <Bottom Color="Gray" />
                        <Right Color="Gray" />
                    </BorderSettings>
                </Over>
                <Normal BorderColor="White" BorderStyle="Solid" BorderWidth="1px" Height="17px" Overflow="Hidden"
                    OverflowX="Hidden" OverflowY="Hidden">
                </Normal>
            </CaptionButtonStyle>
        </WindowSettings>
        <CommandButtons>
            <ISWebDesktop:WebDialogBoxButton Name="askOK" Text="Submit" Type="OK" />
            <ISWebDesktop:WebDialogBoxButton Name="askCancel" Text="Cancel" Type="Cancel" />
        </CommandButtons>
        <ClientSideEvents OnButtonClicked="dlgLookup_ButtonClicked" />
    </ISWebDesktop:WebDialogBox>

Thanks,

Luwen

All times are GMT -5. The time now is 2:14 PM.
Previous Next