Dialog Error Height is 0 - C1Dialog 2025v2 399

Posted by: enrique.pv-ext on 16 June 2026, 4:44 am EST

  • Posted 16 June 2026, 4:44 am EST - Updated 16 June 2026, 4:52 am EST

    Hi,

    Migrate from 2010v1 to 2025v2 399 in ASP.NET WebForms NET Framework 4.8.1.

    Migrate C1Window to C1Dialog.

    Using C1Dialog from C1.Web.Wijmo.Controls.48.dll

     string script = string.Format(@"window.{0}.Show({{ title:'{1}',message:'{2}',icon:{3},buttons:{4}, width:'{5}', height:'{6}' }});", ClientID, Title, System.Web.HttpUtility.JavaScriptStringEncode(Message), (int)Icon, (int)DialogButtons, Width.ToString(), Height.ToString());
     clientScripts.Add(script);

    call to Show:

    window.ctl00_MessageDialog1.Show({ title:‘Error’,message:‘Error buscando tránsitos’,icon:2,buttons:1, width:‘500px’, height:‘250px’ });

    height:‘250px’ for c1dialog ? ‘250px’ with unit px or only 250 ?

    Show javascript fragment:

            w.c1dialog({
                title: title,
                modal: true
            });
    
            if (width) {
                w.c1dialog("option", "width", width);
            }
            if (height) {
                w.c1dialog("option", "height", height);
            }
            w.c1dialog({ position: 'center' });
            w.c1dialog("open");
            controls.btnAccept.focus();

    ascx

    <cc2:C1Dialog ID="C1Window1" runat="server" Height="250px" Width="500px"
        Title="Notification Dialog"
        Resizable="False"
        ShowOnLoad="False" 
        >
    
    <CaptionButtons>
         <Close Visible="false" />
         <Pin Visible="false" />
         <Refresh Visible="false" />
         <Toggle Visible="false" />
    	    <Minimize Visible="false" />
      <Maximize Visible="false" />
     </CaptionButtons>
    
        <Content>
            <div style="height:100%;">
                <table style="padding: 15px 15px 15px 15px">
                    <tr>
                        <td>
                            <div style="float:left; width:60px;">
                                <asp:Image ID="imgIcon" runat="server" ImageUrl="" AlternateText="&nbsp;" Style="display:none;" />
                            </div>
                        </td>
                        <td>
                            <asp:Panel ID="PanelMessage" runat="server" Height="36px" style="float:left; vertical-align:middle; padding-bottom:12px; padding-left:5px;">
                                <asp:Label ID="lblMessage" runat="server" CssClass="minititle"></asp:Label>   
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
                <div id="divBotones" style="position:absolute; bottom:15px; right:15px;">
                    <asp:UpdatePanel ID="UpdatePanelButtons" runat="server">
                        <ContentTemplate>
                            <asp:Panel ID="PanelButtons" runat="server" CssClass="botones">
                                <asp:LinkButton ID="btnAccept" runat="server" Width="100" CausesValidation="false" style="display:none;">
                                    <asp:Label ID="lblAcceptButton" CssClass="ok" runat="server" Text="Aceptar"></asp:Label>                          
                                </asp:LinkButton>
                                    <asp:LinkButton ID="btnCancel" runat="server" Width="105" CausesValidation="false" style="display:none;">
                                    <asp:Label ID="lblCancelButton" CssClass="cancel" runat="server" Text="Cancelar"></asp:Label>                          
                                </asp:LinkButton>
                            </asp:Panel>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
       
            </div>       
        </Content>
    </cc2:C1Dialog>

    any suggestions, please ??

  • Posted 16 June 2026, 7:01 am EST

    Hello Enrique,

    The issue has already been reported by you in the following forum thread:

    https://developer.mescius.com/forums/webforms-edition/type-value-for-width-height-javascript-methods-c1window-to-c1dialog-2025v2-39

    According to the development team, this is a bug and has been fixed internally. The fix will be included in the 2026 v1 Hotfix 1 release.

    As a workaround, please specify the height value without units such as “px”.

    We will keep you updated on the progress through the same forum thread once the fix becomes available.

    Regards,

    Uttkarsh

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels