EasyUI Forum
May 16, 2024, 09:45:29 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Horizontal grid scrollbar under panel  (Read 10900 times)
reems
Newbie
*
Posts: 14


View Profile
« on: August 24, 2014, 06:30:26 AM »

Hi,

I have a datagrid in a south layoutpanel.
It is dynamically loaded in the panel.
Because of the number of columns I have a horizontal scrollbar.

But the scrollbar is just invisible at the bottom of the panel.
If I drag the divider between the north and south panel a little bit up, the scrollbar shows.
I tried to give the south panel a little bit more height, but the problem stays the same.

How do I solve this problem?


Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: August 24, 2014, 07:39:53 AM »

Please set 'fit' property of datagrid to true to let the datagrid full fill the south panel.
Logged
reems
Newbie
*
Posts: 14


View Profile
« Reply #2 on: August 24, 2014, 01:30:19 PM »

I have already "fit:true" in the datagrid.

What I do is loading html with a datagrid dynamic in the collapsed south region.
with:
$("#rplayout2").html("$rpgrid");

After that I use:
$('#rplayout2').layout('expand','south');
Logged
reems
Newbie
*
Posts: 14


View Profile
« Reply #3 on: August 24, 2014, 01:41:26 PM »

What I discover is that when I remove the toolbar above the grid, the horizontal scrollbar is visible without problems.
So it has somehing to do with the toolbar above the grid.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #4 on: August 24, 2014, 03:22:26 PM »

What does your code $("#rplayout2").html("$rpgrid"); do? Please describe your issue in more detail.
Logged
reems
Newbie
*
Posts: 14


View Profile
« Reply #5 on: August 25, 2014, 01:09:28 AM »

Hi STworthy,

Sorry, the "$rpgrid" is somewhat confusing.

I generate all the markup and javascript with php (Built a php wrapper with a gridclass and formclass to built all the grids and forms). So, the $rpgrid is the php variable that holds the grid.

But late lastnight I already found a solution for my problem.
I have a toolbar above my grid and had some padding in it to give the buttons some more space.
And just this padding pushed the horizontal scrollbar at the bottom of my grid out of sight.
After removing the padding, the scrollbar was visible again, so that's solved.

But, in that case, the question remains how I could add some padding in the toolbar without pushing the scrollbar out of sight.

Thanks for your help as allways Smiley


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!