Reputation: 4912
I have set up a paging toolbar for my grid. If I put an invalid number in the text field for page numbers, an error message/quicktip is displayed. I want to disable it. I have gone through all the configs, but couldn't find one. Is there a way to do this?
Try adding a 0 in the text input for the paging toolbar, and keep pointing at it with the mouse. The tooltip will pop out.
Upvotes: 1
Views: 384
Reputation: 38
You need to override the getPagingItems
function for this:
xtype: 'gridpanel',
(...),
dockedItems: [{
xtype: 'pagingtoolbar',
(...),
getPagingItems: function() {
var me = this;
var pagingItems = me.self.prototype.getPagingItems.apply(me, arguments);
for (var i in pagingItems) {
var pagingItem = pagingItems[i];
if (pagingItem != null && pagingItem.itemId == 'inputItem') {
pagingItem.preventMark = true;
break;
}
}
return pagingItems;
}
}]
Upvotes: 0