1. #1
    Sencha Premium Member
    Join Date
    Oct 2010
    Posts
    9
    Vote Rating
    0
    maciasoft is on a distinguished road

      0  

    Default ComboBox forces Store with remote filtering to load on render

    ComboBox forces Store with remote filtering to load on render


    Since Ext 4.2.0 ComboBox seems to register a filter on store it is bound to (property 'queryFilter'). When store has remoteFilter: true, it is forced to do a remote load immediately. On 4.1.3 filter was not registered, and store never issued server request until user interacted with the combo.

    Sample provided (ready to pase in try.sencha.com) shows the problem. Just view browser network activity (sample is using JsonP - look for topics-remote.php scripts)

    Code:
    Ext.require([    'Ext.data.*',
        'Ext.form.*'
    ]);
    Ext.onReady(function(){
        Ext.define("Post", {
            extend: 'Ext.data.Model',
            proxy: {
                type: 'jsonp',
                url : 'http://www.sencha.com/forum/topics-remote.php',
                reader: {
                    type: 'json',
                    root: 'topics',
                    totalProperty: 'totalCount'
                }
            },
    
            fields: [
                {name: 'id', mapping: 'post_id'},
                {name: 'title', mapping: 'topic_title'}
            ]
        });
    
        panel = Ext.create('Ext.panel.Panel', {
            renderTo: Ext.getBody(),
            title: 'Search the Ext Forums',
            width: 600,
            bodyPadding: 10,
            layout: 'anchor',
    
            items: [{
                xtype: 'combo',
                store: {
                    pageSize: 10,
                    model: 'Post',
                    remoteFilter: true,
                  remoteSort: true
                },
                displayField: 'title',
                anchor: '100%'
            }]
        });
    });

  2. #2
    Sencha User
    Join Date
    Feb 2009
    Posts
    1
    Vote Rating
    0
    lauzierj is on a distinguished road

      0  

    Default Disabled Filters Still Apply

    Disabled Filters Still Apply


    This appears to be related to another issue I noticed. Filters that are marked as disabled are still being added to the data operation's outgoing filters.

    In the case of ComboBox, the filter you're referring to is marked as disabled, but that doesn't appear to do anything (at least in the case of remote filtering).

  3. #3
    Sencha Premium Member
    Join Date
    Dec 2012
    Posts
    47
    Vote Rating
    0
    k_cire0426 is on a distinguished road

      0  

    Default


    We're experiencing this issue as well. Do you find the solution?

  4. #4
    Sencha Premium Member
    Join Date
    Oct 2010
    Posts
    9
    Vote Rating
    0
    maciasoft is on a distinguished road

      0  

    Default


    Ext 4.2.1 is about to fix that: http://www.sencha.com/forum/showthre...-Now-Available (first item in Data section).

  5. #5
    Sencha Premium Member
    Join Date
    Dec 2012
    Posts
    47
    Vote Rating
    0
    k_cire0426 is on a distinguished road

      0  

    Default


    Thanks maciasoft

Thread Participants: 2

Tags for this Thread