:: Forum >> Version 1 >>

grid not showing in when contained in a div

I am showing the grid inside a div. I am setting the width of the div and overflow:auto in the style.

The grid does not show.

Any ideas anyone ?

The reason for me doing this, is that we are writing our own asp.net combo and are using the grid to display the data. We need the div to enable us to set a limit on the popup size and allow the user to scroll left
ight updown

Having a setting on the external size of the grid would work for us, as long as it would show the scroll bars internally to the grid.

Many thanks

BOb
Friday, December 5, 2003
ok, solved it ... I had not specified a height on the div. Now it shows, but ...

The scroll bars do not show when the grid is first displayed. If I click on a column header to get it to re-sort, after the sorting the scroll bars appear.

Ideas ?


Thanks

BOb
Friday, December 5, 2003
This is the bug which I saw couple of times but could not replicate. Do you always see this problem? If yes, would be very nice if you can let me look at the page you are doing (mail: support|at|activewidgets.com)

Alex (ActiveWidgets)
Alex (ActiveWidgets)
Friday, December 5, 2003
Same problem here with Mozilla and Firebird.

Workaround:
==========

window.onload = function(){
setTimeout(initpage, 100);
}
function initpage(){
if(obj) obj.refresh();
}
Saturday, December 13, 2003
Yes, this should do it (repaint the whole grid).

Maybe the following code can make it as well?

window.onload = function(){
setTimeout(initpage, 100);
}
function initpage(){
if(obj) obj.getTemplate("layout").action("adjustSize");
}

???
Alex (ActiveWidgets)
Saturday, December 13, 2003
<snip>
if(obj) obj.getTemplate("layout").action("adjustSize");
</snip>

Yes workes, but action("adjustSize") takes more time as obj.refresh() on browser mozilla, firebird.. ???


Sunday, December 14, 2003



This topic is archived.

Back to support forum

Forum search