EasyUI Forum
April 29, 2024, 06:43:52 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: Border Layout question#2 or how to load DataGrid into 'central' panel  (Read 14577 times)
mzeddd
Full Member
***
Posts: 223



View Profile
« on: October 08, 2011, 10:24:42 PM »

DataGrid does not work as expected when I load it dynamically into any "div"?

- menu is not working (I load it in the same "div")
- DataGrid does not fit to 'central' panel width when 'east' is collapsed or resized.
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #1 on: October 09, 2011, 10:02:23 PM »

I used to load content into the div using

Code:
$('#abc').load('page.php');

But it was not working as expected.

The solution is to do like this

Code:
$('#abc').panel({
href:'page.php',  
});

But there is one small problem.
When I use this code with "central" panel in IE everything is fine, but in Opera scroll bars appear
« Last Edit: October 09, 2011, 10:20:37 PM by mzeddd » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #2 on: October 10, 2011, 01:41:01 AM »

Try add 'overflow:hidden' style to your center div:
<div id="abc" region="center" style="overflow:hidden">
...
</div>
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #3 on: October 11, 2011, 02:55:50 AM »

Thank you very much for this simple solution.
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!