1. #1
    Sencha User
    Join Date
    Oct 2010
    Location
    Chandigarh (INDIA)
    Posts
    143
    Vote Rating
    0
    sachin sachdeva is on a distinguished road

      0  

    Default Combox showing wrong page numbers

    Combox showing wrong page numbers


    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
                        
    }); 
    Attached Images

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    What exactly is your server returning as the 'total'?

Similar Threads

  1. Replies: 1
    Last Post: 10 Jul 2009, 7:55 AM
  2. Combox Box not showing values
    By ektanit in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 6 Jan 2009, 10:55 AM
  3. [help(extjs2.1)]when i put combox into formpanel,something is wrong.
    By iceman09 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 16 Jun 2008, 6:34 AM
  4. paging numbers not showing
    By bartcha in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 1 Nov 2007, 1:54 PM
  5. what is wrong with the combox?
    By followmephoe in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 21 Sep 2007, 12:40 AM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar