EasyUI Forum
April 24, 2024, 12:38:29 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: [SOLVED] Datagrid columns  (Read 3000 times)
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« on: September 21, 2017, 07:30:07 AM »

Hello
I'm using stworthy's example to "autohide" columns and found one problem.
Example is here:
http://code.reloado.com/ecituq3/39/edit#preview
Please try to resize window. You will see that columns are hidden (and it is OK) but there is empty space (please see attached image).
How to avoid that, please?
« Last Edit: September 21, 2017, 10:56:03 AM by Pierre » Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #1 on: September 21, 2017, 10:55:50 AM »

I solved it when I changed datagrid fields width declaration, from
width="10%"
to
width="10" (and for all other columns)
It should be like that because dialog have width of 100%
Corrected example is here:
http://code.reloado.com/ecituq3/40/edit#preview
you can resize it and column will be hidden on smaller devices.
« Last Edit: September 21, 2017, 10:59:28 AM by Pierre » 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!