[CLOSED] [#213] Problem with storeHasSelected

  1. #1

    [CLOSED] [#213] Problem with storeHasSelected

    Hi there,

    I ran into a problem when switching to ext.net 2.2 :

    I'm applying a filter to a store of a gridpanel via a combobox.

    ext.js seems not to have
    records.length
    anymore.

    I searched and found an open bug with a fix:
    http://www.sencha.com/forum/showthread.php?258397

        storeHasSelected: function(record) {
            var store = this.store,
                records,
                len, id, i;
            
            if (record.hasId() && store.getById(record)) {
                return true;
            } else {
                records = store.data.items;
                len = records ? records.length : 0; //<------- fix
                //len = records.length;  //<------- problem
                id = record.internalId;
                
                for (i = 0; i < len; ++i) {
                    if (id === records[i].internalId) {
                        return true;
                    }
                }
            }
            return false;
        }
    var applyFilter = function (field, dataIndex) {
        //var store = App.gridPanel_ES_EinsatzVollstaendig.getStore();
        var gridPanelComponent = field.up().up().up().up();
        var store = gridPanelComponent.getStore();
        var valueToFilter = field.getValue();
        store.filter({
            property: dataIndex,
            value: valueToFilter,
            exactMatch: true,
            caseSensitive: true
        });
        //store.filter(dataIndex, valueToFilter);
        if (isDebug) {
    
        }
    };

    It seems to fix the problem, but the bug is still open at sencha.

    When will the fix be included to ext.net ?

    Regards,
    Holger
    Last edited by Baidaly; May 30, 2013 at 6:54 AM. Reason: [CLOSED]
  2. #2
    Hi Holger,

    Quote Originally Posted by zwf View Post
    When will the fix be included to ext.net ?
    I think when it is fixed on Sencha side. For now, please use a temp fix.

    I created an Issue to track this defect.
    https://github.com/extnet/Ext.NET/issues/213
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi Holger,



    I think when it is fixed on Sencha side. For now, please use a temp fix.

    I created an Issue to track this defect.
    https://github.com/extnet/Ext.NET/issues/213
    You're so fast ;)

    Regards,
    Holger
  4. #4
    Hello!

    The issue appears to be fixed in the SVN trunk. Please update.

Similar Threads

  1. [CLOSED] Groupingview display records problem
    By legaldiscovery in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 10, 2013, 2:15 PM
  2. store.data.items.length and paging problem
    By tanju_yayak in forum 1.x Help
    Replies: 0
    Last Post: Feb 09, 2011, 8:15 AM
  3. autoload datastore records from http proxy
    By hnafar in forum 1.x Help
    Replies: 1
    Last Post: Feb 11, 2010, 7:50 AM
  4. Problem after update records
    By Argons in forum 1.x Help
    Replies: 1
    Last Post: Aug 06, 2009, 1:36 PM
  5. Coolite Forum Problem After Login!!
    By yaser82 in forum Open Discussions
    Replies: 2
    Last Post: Apr 21, 2009, 1:03 PM

Posting Permissions