How to dock the C1Dialog to parent control

Originally Posted 21 May 2013, 9:18 pm EST

  • Originally Posted 21 May 2013, 9:18 pm EST

    In my web page have a div that width 800px and height 600px, the div include a C1Dialog control that default width 400px and height 300px.

    I want to full the C1Dialog in div when C1Dialog's Max Button clicked. but now it full the window.

    How to full the C1Dialog in parent control?
  • Reply


    If I understand your requirements correctly, you wish to fit the C1Dialog in its parent div on a button click. If this is the said scenario then you can use the following jQuery function to get the desired results:

            function fitDialog() {
    var h = $("#parent").height();
    var w = $("#parent").width();
    var pos = $("#parent").position();
    $("#C1Dialog1").parent().css({ left: pos.left, top: });

    I have attached a small sample application where I have implemented this function. Please check it and let me know if it helps.

  • Reply

Need extra support?

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

Learn More

Forum Channels