EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: JPi on January 19, 2017, 10:53:46 PM



Title: How to autosize datagrid so that it occupies whole of accordion
Post by: JPi on January 19, 2017, 10:53:46 PM
Hi,

I have a datagrid within accordion which can be collapsed to right and can also be expanded. Now let's assume the datagrid columns occupy entire width of my accordion. When I pull accordion to left to increase its width then datagrid now occupies 70% of accordion width leaving the increased 30% space blank. How to auto size datagrid width to accordion width ? So if i increase or decrease width of accordion, my datagrid within will also resize automatically.

Thanks,
JPi


Title: Re: How to autosize datagrid so that it occupies whole of accordion
Post by: stworthy on January 20, 2017, 02:22:16 AM
Please set the 'fit' property to true for the datagrid.