dojo.place(this.paginator.domNode, this.domNode, 'before');
if(this.showBackForward) {
- var back = dojo.create('a', {
- innerHTML : 'Back', // TODO i18n
- style : 'padding-right:6px;',
- href : 'javascript:void(0);',
- onclick : function() {
- self.cachedQueryOpts.offset = self.displayOffset -= self.displayLimit;
- if(self.displayOffset < 0)
- self.cachedQueryOpts.offset = self.displayOffset = 0;
- self.refresh();
- }
- });
-
- var forw = dojo.create('a', {
- innerHTML : 'Next', // TODO i18n
- style : 'padding-right:6px;',
- href : 'javascript:void(0);',
- onclick : function() {
- self.cachedQueryOpts.offset = self.displayOffset += self.displayLimit;
- self.refresh();
- }
- });
+ if(this.displayLimit != null) { //Don't show back or forward if we are displaying all rows.
+ var back = dojo.create('a', {
+ innerHTML : 'Back', // TODO i18n
+ style : 'padding-right:6px;',
+ href : 'javascript:void(0);',
+ onclick : function() {
+ self.cachedQueryOpts.offset = self.displayOffset -= self.displayLimit;
+ if(self.displayOffset < 0)
+ self.cachedQueryOpts.offset = self.displayOffset = 0;
+ self.refresh();
+ }
+ });
+
+ var forw = dojo.create('a', {
+ innerHTML : 'Next', // TODO i18n
+ style : 'padding-right:6px;',
+ href : 'javascript:void(0);',
+ onclick : function() {
+ self.cachedQueryOpts.offset = self.displayOffset += self.displayLimit;
+ self.refresh();
+ }
+ });
- dojo.place(back, this.paginator.domNode);
- dojo.place(forw, this.paginator.domNode);
+ dojo.place(back, this.paginator.domNode);
+ dojo.place(forw, this.paginator.domNode);
+ }
}
if(this.showLoadFilter) {
if(this.loadProgressIndicator)
dojo.style(this.loadProgressIndicator, 'visibility', 'visible');
var self = this;
- opts = dojo.mixin(
- {limit : this.displayLimit, offset : this.displayOffset},
- opts || {}
- );
+
+ if(this.displayLimit != null) {
+ opts = dojo.mixin(
+ {limit : this.displayLimit, offset : this.displayOffset},
+ opts || {}
+ );
+ }
+
opts = dojo.mixin(opts, {
async : true,
streaming : true,