:: Forum >> Version 2 >>

how to make SelectorWidth dinamic?

More information on this topic is available in the documentation section: /grid.howto.selectors/.

i have this one but first time grid load dont work, i make reset grid and this work fine, some one know how can i make this dinamic?

obj.onTotalRowChanged = function(value) {
var sTlen = this.getTotalRowCount().toString().length;
if ( sTlen>2 ){
this.setSelectorWidth(parseInt(sTlen*8));
}else{
this.setSelectorWidth(20);
}
};
icthux
Friday, July 27, 2007



This topic is archived.

Back to /grid.howto.selectors/

Documentation:

Forum search