3.2.0

Scrollbar scenario I cannot make with a grid

Hello all!

I want to build a grid with only the vertical scrollbar, but I want it to be disabled if there aren't enough rows and enabled otherwise.

I have tried this
obj.setScrollBars('vertical'); 
    obj.onScrollBarsChanging  = function(){return 1};


but when the scrollbar must be disabled appears only a white strip, when the scrollbar is needed it appears just ok.

I've seen also that if I put "both" instead of vertical, I can obtain a vertical scrollbar that is disabled and enabled, but I also have the horizontal scrollbar which I don't want. I've tried to hide it but with no result.

Perhaps you can give me a hint. Thank you!
John
July 15,
Strange. When I try this - I am always getting the vertical toolbar, enabled or disabled depending on the number of rows (tried IE7, FF2, FF3, AW 2.5.2).

var obj = new AW.UI.Grid;
obj.setId("myGrid");
obj.setCellData(function(col, row){return col + "." + row});
obj.setHeaderText("header");

obj.setColumnCount(3);
obj.setRowCount(10);

obj.setScrollBars('vertical');
obj.onScrollBarsChanging  = function(){return 1};

document.write(obj);
Alex (ActiveWidgets)
July 15,
Hi Alex!

finally I found what was wrong, it was just a stylesheet issue. We are working with a modified stylesheet and this is what was making appear the white strip instead of the bar.

Thank you very much and keep going on!
John
July 17,

This topic is archived.

See also:


Back to support forum