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

    Hi,
    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:


     



    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"

    AnimationEffectOnHiding="DropOutToRight"

    AnimationEffectOnShowing="DropInFromLeft" VerticalAlign="Middle">


























     


    And here the usercontrol:


     


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









      '/>






     


    Kind regards,
    Rens


     

  • Replied 10 September 2017, 11:37 am EST

    Hi

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

    Regards
    Palak
Need extra support?

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

Learn More

Forum Channels