PDA

View Full Version : Wrong Pagination is appearing.



sachin sachdeva
25 Apr 2011, 3:20 AM
COMBO BOX CODE
var search = new Ext.form.ComboBox({
store : GlobalSearchDataStore,
mode : 'remote',
displayField : 'fileName',
id : 'searchclrid',
typeAhead : false,
loadingText : 'Searching...',
width : 370,
pageSize : 10,
minLength : 0, // 5
maxLength : 250,
hideTrigger : true,
tpl : resultTpl,
emptyText : 'Enter minimum 3 characters...',
applyTo : 'search',
queryParam : 'searchKeyword',
itemSelector : 'div.search-item',
nocache : false,
minChars : 3,
validateOnBlur : true,
enableKeyEvents : true,
listeners : {
blur : function() {
Ext
.getCmp("searchclrid")
.setValue("Enter minimum 3 characters...");
},
focus : function() {
Ext.getCmp("searchclrid").clearValue();

},


keypress : function(comboBox, e) {
if (e.getCharCode() == e.ENTER) {

EnterKey();//---here i need to show combobx paging toolbar into grid.Enter code is written below.
}
}
}

STORE

GlobalSearchDataStore = new Ext.data.Store({
// load using script tags for cross domain
proxy : new Ext.data.HttpProxy({
url : 'searchUsingKeyword.jsp',
method : 'POST'
}),
reader : GlobalSearchReader
});