3.2.0

2.5 HELP

Hi Alex

I used one of your examples to make a solution, it worked fine on 2.0 but 2.5 it not working, the code i made is to big to paste, so i tried your example on 2.5, same problem.

Could you please have a look at it, i am realy eager to use the 2.5 instead of 2.0 on my solutions.

http://www.activewidgets.com/javascript.forum.12543.2/composite-controls-adding-more-elements.html

<script>
var obj = new AW.UI.Grid;
obj.setSize(800, 250);
obj.setCellText(function(i, j){return j + "-" + i});
obj.setHeaderText("header");

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

obj.defineTemplate("topLine", function(){return "top"});
obj.defineTemplate("bottomLine", function(){return "bottom"});

obj.setLayoutTemplate(new AW.Panels.Horizontal);
obj.setPanelTemplate(function(i){
switch(i){
case 0: return this.getTopLineTemplate();
case 1: return this.getScrollTemplate();
case 2: return this.getBottomLineTemplate();
}
});

obj.setPanelHeight(30, 0); //top line
obj.setPanelHeight(20, 2); //bottom line

document.write(obj);
</script>
Armit
December 4,
Hi Armit,

Panels have changed in 2.5 and the old code won't work.
Check out Alex's reply and code at http://www.activewidgets.com/javascript.forum.20540.4/safari-and-opera-support-alpha.html
Ankur Motreja
December 5,
Hi Ankur

Thanks a lot, did not think about looking under that safari opera thing when i searched ;-).

Armit
Armit
December 5,

This topic is archived.

See also:


Back to support forum