C1Expander not expanding to the maximum width

Posted by: vijayvidhya2004 on 10 September 2017, 11:48 am EST

  • Posted 10 September 2017, 11:48 am EST

    Hi

    I have set the C1Expander width to 200px and set the max-width to 600 px. But on expanding the width is still the same. It is not expanding to the maximum of the content.

    I have a gridview inside C1Expander, and wants the expander to expand maximum size of the grid? Is this possible?

    Thanks
    Vidhya
  • Replied 10 September 2017, 11:48 am EST

    Hello Vijay,

    You can set the width of C1Expander to be equat to the width of C1GridView by using CSS function of JQuery . You may try using the following code the same:


    <script type="text/javascript">
    $(document).ready(function () {
    var width = $("#C1GridView1").css("width");
    //set width of Expander to be equal to width of C1GridView
    $("#C1Expander1").css("width", width);
    });
    </script>


    Hope this helps..!!
    Regards
    Nidhi
Need extra support?

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

Learn More

Forum Channels