PDA

View Full Version : Custom PagingToolbar in a BoundView (Combo box)



neurodon
22 Mar 2012, 5:13 AM
I am creating a custom paging toolbar for a combobox BoundView and running in to a few issues. Here is my code:


xtype: "combo",
name: 'search',
fieldCls: "header_search",
border: false,
emptyText: "Search",
width:220,
displayField: 'title',
typeAhead: false,
hideLabel: true,
hideTrigger:true,
store: "SearchStore",
listConfig: {
pagingToolbar: [{
pageSize:10,
store: "SearchStore",
displayInfo:true,

}],
loadMask: false,
cls:'header_searchresults',
shadow:false,
getInnerTpl: function() {
return "{title}<br>{description}";
},
maxHeight:600,
maxWidth:198
},

pageSize: 10,
height: 25
}


For some reason, the pagingToolbar property of listConfig seems to be unresponsive. The source code indicates a mere override should work fine. How do I remedy this?

neurodon
22 Mar 2012, 6:37 AM
I was able to get it to work by overriding the BoundView 'createPagingToolbar' function.