views:

333

answers:

1

Hi there,

How do I override a method in dojox.grid._Scroller class from a class extending dojox.grid.DataGrid.

dojox.grid.DataGrid extends dojox.grid._Grid, which requires dojox.grid._Scroller. The method of interest here is: getScrollBottom(inTop). Thanks in advance!

David

A: 

You want to use dojo.extend

 dojo.require('dojox.grid._Scroller');
 dojo.extend(dojox.grid._Sroller, {
    methodToOverride: function() {
      // good times here
    }
 };
seth