Hi. i am using combobx when i search for the first time it shows right number of pages but wen i search for next time it shows right number of pages after the whole data is loaded......it must show it on loading as shown in attachment... my code is
PHP 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,
clearFilterOnReset : true,
listeners : {
blur : function() {
Ext
.getCmp("searchclrid")
.setValue("Enter minimum 3 characters...");
},
focus : function() {
Ext.getCmp("searchclrid").clearValue();
},
keyup : function() {
var dcsKeyword = Ext.getCmp("searchclrid")
.getValue();
if (dcsKeyword.length > 3) {
dcsMultiTrack('DCS.dcsuri',
'/amp/keywords/' + dcsKeyword,
'WT.dl', '0');
}
if (Ext.getCmp("searchclrid").getValue().length < 3) {
if (this.isExpanded()) {
this.collapse();
}
}
},
specialkey : function(password, el) {
if ((el.getKey() == Ext.EventObject.ENTER)) {
EnterKey();
}
}
}