문제

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