3.2.0

hi, a BIG Bug?

in one page, insert two or more Grid. script:
--------
obj1 = new Active.Controls.Grid;
obj2 = new Active.Controls.Grid;

obj1.setDataText(function(i, j){return DB1[i][j]});
obj1.setColumnText(function(i){return DB1_Cols[i]});

obj2.setDataText(function(i, j){return DB2[i][j]});
obj2.setColumnText(function(i){return DB2_Cols[i]});
--------

now, in obj2, ColumnText is from DB2_Cols[], but DataText is from DB1?!!! --- from DB1?!

and other, how to custom self head_style, in two or more grid...
December 10,
Ooops!!!

Here is quick patch to fix the data part (use on top of 0.2.1):

<script>
Active.Templates.Row.patch = function(){

var obj = this.prototype;
var _super = this.superclass.prototype;

obj.init = function(){
_super.init.call(this);
this._itemTemplates = [];
}
}

Active.Templates.Row.patch();
</script>

You should put this just after including activeui.js

However I found some other things broken - like resizing columns. I'll try to fix that ASAP.

Thanks a lot for pointing this,

Alex (ActiveWidgets)
Alex (ActiveWidgets)
December 10,
OK. fixed. thanks.
waiting for you to fix other - like resizing, like head style custom...

-------------

<!-- this for tab1 -->
<style>
.active-column-0 {width: 34px;}
.active-column-1 {width: 220px}
</style>

<!-- but, how to custom tab2, or .... -->
<style>
/// ???? ^.^
.active-obj2-column-0 {width: 34px;}
.active-obj3-column-1 {width: 220px}
.active-obj4-column-1 {width: 220px}
.active-obj5-column-1 {width: 220px}
</style>
December 10,
Hi! thanks Admin. I try ver0.2.2, all bug is fixed. It's very cool.

:)
December 13,
Very glad that it works.

Hint: in case you are trying to implement master-detail form with two grids - you can use refresh() method on the second grid to repaint it with the new data (depending on the selection in the first one).

Alex
Alex (ActiveWidgets)
December 13,

This topic is archived.

See also:


Back to support forum