PDA

View Full Version : grid toolbar display issues in IE



sjivan
4 Dec 2006, 10:16 PM
I have a grid in the south panel and in IE the paging toolbar doesnt get dispalyed even though I call autoSize() on the grid. If I drag the panel all the way up I see the toolbar. I've tried calling autoSize() in the dataModel.loadPage() callback



dataModel.loadPage(1, function() {
this.autoSize(); }.createDelegate(this));


I also tried what the YUI forum code does but this does not work too in IE.



// ie hack
document.body.style.width = (document.body.offsetWidth-1) +'px';
setTimeout(function(){document.body.style.width = '';locationGrid.autoSize();}, 100);



The grid toolbar renders fine in Firefox when grid.autoSize() is called as above. So it seems grid.autoSize() is the call that needs to be made but for some reason this doesnt work in IE.

Any ideas?

Thanks,
Sanjiv