質問

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 here!

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.

役に立ちましたか?

解決

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;
    }
}]
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top