To display row numbers put getRowPosition()
method call into selector text property. The positions start with 0 so you may want to add 1 to the getRowPosition()
method result.
obj.setSelectorText(function(i){return this.getRowPosition(i)+1});
Class reference - row position