hello sir
I am using a combobox my problem is it is showing number of documents received on page number ,for more info.you can see the attached screen shot....My whole code is given below plz help its urgent......
PHP Code:
COMBO BOX CODE
var search = new Ext.form.ComboBox({
store : ds,
mode : 'remote',
displayField : 'fileName',
id : 'searchclrid',
typeAhead : false,
loadingText : 'Searching...',
width : 370,
pageSize : 10,
hideTrigger : true,
tpl : resultTpl,
emptyText : 'Enter minimum 4 characters...',
applyTo : 'search',
queryParam : 'searchKeyword',
itemSelector : 'div.search-item',
nocache : false,
displayInfo:true,
validateOnBlur : true,
listeners : {
blur : function() {
Ext.getCmp("searchclrid") .setValue("Enter minimum 4 characters...");
},
focus : function() {
Ext.getCmp("searchclrid").clearValue();
},
keyup : function() {
if (Ext.getCmp("searchclrid").getValue().length < 4) {
if (this.isExpanded()) {
this.collapse();
}
}
}
}
PHP Code:
Data Store
var reader = new Ext.data.JsonReader({
totalProperty : 'total',
root : 'rows',
id : 'id'
}, DocumentRecordDefinition);
var ds = new Ext.data.Store({
// load using script tags for cross domain
proxy : new Ext.data.HttpProxy({
url : 'searchUsingKeyword.jsp',
method : 'GET'
}),
reader : reader
});