C1Window resets contents after button press

Posted by: olyrens on 10 September 2017, 11:37 am EST

  • Posted 10 September 2017, 11:37 am EST

    I'm having some issues with the C1Window control.

    I have an usercontrol in the window which itself contains more usercontrols (works like an advanced type of treeview).
    This window exists to allow users to check certain items in a report to display on a generated pdf or not.

    The treeview uses unordered lists (ul), divs and checkboxes for the selections. JQuery is used for expanding/collapsing of the nodes.
    There is button in the window that reads all checkboxes, changes the objects related to it and eventually it must create a pdf file.

    Now the issue:

    When i press the button all lists, divs and checkboxes gets reset to their initial state. Nodes no longer expanded/collapsed, checkboxes no longer checked.

    However, when i put the main usercontrol out of the window and put the button in an updatepanel the treeview behaves like it should.
    Putting the window in an updatepanel resets the window too.

    Here is the window code:


    <cc1:C1Window ID="C1Window1" runat="server" AllowResize="True"

    EnableTheming="True" Height="500px" onescpressedclose="True"

    StartPosition="Page" HorizontalAlign="Center" StatusVisible="False"

    Width="758px" Y="250"

    AutoExpand="False" ImageHeight="0" ImageWidth="0"

    AnimationDurationOnHiding="500" AnimationDurationOnShowing="500"


    AnimationEffectOnShowing="DropInFromLeft" VerticalAlign="Middle">


    <uc:PrintOptionsModalPopup ID="ucPrintOptions" runat="server"/>



    <CollapseExpandButton Visible="False"></CollapseExpandButton>

    <CloseButton Visible="True"></CloseButton>

    <Icon Visible="False"></Icon>

    <MaximizeButton Visible="False"></MaximizeButton>

    <MinimizeButton Visible="False"></MinimizeButton>


    <ReloadButton Visible="False"></ReloadButton>



    And here the usercontrol:


    <%@ Register src="PrintComponent.ascx" tagname="PrintComponent" tagprefix="rec" %>

    <asp:Button ID="btnPrint" runat="server" OnClick="btnPrintClick" Text="p" />

      <asp:Repeater ID="rptComponents" runat="server">


      <rec:PrintComponent ID="recComponent" runat="server" Component='<%#Eval("self")%>'/>





    Kind regards,


  • Replied 10 September 2017, 11:37 am EST


    It will be nice if you can provide us with a working sample so that we can look into the same.

Need extra support?

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

Learn More

Forum Channels