EasyUI Forum
May 18, 2024, 02:57:54 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: why the datagrid is separated in multiple tables?  (Read 2904 times)
tofix
Newbie
*
Posts: 4


View Profile
« on: August 30, 2016, 01:41:43 AM »

Hi everyone,

the datagrid is build up using different tables for header and body, and also separates each group when groupview is enabled to a new table. However I would like to not use the autoSizeColumn method to achieve what a regular table can do because in my case for only 50 items it requires around 200 ms to update column size.
It was easy to update the groupview to stay as one table only using different tbody containers instead of div & table.
However I could not extract the required information from the minified sourcecode to apply the same on the header.
When scaling tables to 100% width to have at least full width or if the content is too long enable scrolling to right/left the autoSizeColumn does not work correctly.

How can I get the following behaviour for the datagrid:
- Columns width should be at least to fit content
- Table width should be at least 100%
- If cells need more than 100% width, scrolling should be enabled

Experimental fiddle: http://jsfiddle.net/5ar4aotx/1/

Thanks
Tobias
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!