Title: Resize panel upon adding a new row to a datagrid Post by: martinh on June 15, 2018, 02:13:00 AM Hi,
I have a datagrid in a panel and i want to resize the panel when a new row is added to the datagrid by the end user. How do i go about doing this? HTML Code: <div id="sectionA" class="easyui-panel" title="Section A" style="padding:5px;height:250px;"> JS Code: function fncAddSave($addsave){ Title: Re: Resize panel upon adding a new row to a datagrid Post by: stworthy on June 15, 2018, 05:37:48 PM Your panel has the 250px height and the datagrid has the 'fit' set to true. This means that the datagrid will full fill all the space of the panel. If you want to resize the panel, just call the 'resize' method.
Code: $('#sectionA').panel('resize', ...); |