1. #151
    Sencha User
    Join Date
    Feb 2010
    Posts
    357
    Vote Rating
    4
    maneljn is on a distinguished road

      0  

    Default


    srarnold, i have the same problem.
    Error message in firebug.
    Did you solved ?

    Thanks
    Manel.
    -------------------
    Manel Juàrez

  2. #152
    Sencha User
    Join Date
    Sep 2011
    Posts
    16
    Vote Rating
    0
    srarnold is on a distinguished road

      0  

    Default


    Quote Originally Posted by maneljn View Post
    srarnold, i have the same problem.
    Error message in firebug.
    Did you solved ?

    Thanks
    Manel.
    Yes I did, I found that by removing the typeAhead and lastQuery config items sorted this problem out, so my xtype looks like this:
    Code:
      
    xtype: 'boxselect',
    id: 'cboIncWinGroups',
    fieldLabel: 'Included Windows Groups',
    queryMode: 'local',
    emptyText: 'Please select a windows group',
    width: 320,
    growMin: 75,
    growMax: 150,
    forceSelection: true,
    filterPickList: true,
    displayField: 'WindowsGroup',
    valueField: 'WindowsGroup',
    store: TLC_WinIncGroupStore

  3. #153
    Ext JS Premium Member
    Join Date
    Mar 2008
    Location
    Phoenix, AZ
    Posts
    628
    Vote Rating
    10
    zombeerose will become famous soon enough zombeerose will become famous soon enough

      0  

    Default


    @kveeiv
    Thanks for continuing to support this extension!

  4. #154
    Sencha User
    Join Date
    Feb 2010
    Posts
    357
    Vote Rating
    4
    maneljn is on a distinguished road

      0  

    Default


    Quote Originally Posted by srarnold View Post
    Yes I did, I found that by removing the typeAhead and lastQuery config items sorted this problem out, so my xtype looks like this:
    Code:
      
    xtype: 'boxselect',
    id: 'cboIncWinGroups',
    fieldLabel: 'Included Windows Groups',
    queryMode: 'local',
    emptyText: 'Please select a windows group',
    width: 320,
    growMin: 75,
    growMax: 150,
    forceSelection: true,
    filterPickList: true,
    displayField: 'WindowsGroup',
    valueField: 'WindowsGroup',
    store: TLC_WinIncGroupStore
    srarnold, thanks. now works fine without error

    Manel
    -------------------
    Manel Juàrez

  5. #155
    Sencha Premium Member
    Join Date
    Oct 2007
    Location
    Munich
    Posts
    23
    Vote Rating
    9
    Schlurcher will become famous soon enough

      0  

    Default


    I ran into a problem with regards to trackResetOnLoad. Fixed it this way:

    setValue (Line 1308)
    Code:
    if ((skipLoad !== true) && (unknownValues.length > 0) && (me.queryMode === 'remote')) {
                me.isLooking = true;
                var params = {};
                params[me.valueParam || me.valueField] = unknownValues.join(me.delimiter);
                me.store.load({
                    params: params,
                    callback: function () {
                        if (me.itemList) {
                            me.itemList.unmask();
                        }
    
    
                        me.setValue(value, doSelect, true);
                        me.autoSize();
                        me.lastQuery = false;
                        me.isLooking = false;
                        me.fireEvent("lookupcomplete");
                    }
                });
    
    
                return false;
            }
    resetOriginalValue (new override)
    Code:
     resetOriginalValue: function () {
            var me = this;
            if (me.isLooking) { 
                me.on("lookupcomplete", this.resetOriginalValue, this, { single: true });
            } else {
                me.callParent(arguments);
            }
        }
    Works on my machine (so far).

  6. #156
    Sencha User
    Join Date
    Mar 2008
    Posts
    126
    Vote Rating
    3
    nicholasnet is on a distinguished road

      0  

    Default


    I found that it is leaking global around line 1553
    PHP Code:
    /**
     * Track height change to fire {@link #event-autosize} event, when applicable.
     */
    afterComponentLayout: function() 
    {
        var 
    me thiswidthheight;//height was missing here hence got declared in global scope

        
    if (me.autoSizing
        {
            
    height me.getHeight();
            if (
    height !== me.lastInputHeight
            {
                if (
    me.isExpanded
                {
                    
    me.alignPicker();
                }
                
    me.fireEvent('autosize'meheight);
                
    me.lastInputHeight height;
                
    delete me.autoSizing;
            }
        }


  7. #157
    Sencha User hexawing's Avatar
    Join Date
    Nov 2009
    Posts
    73
    Vote Rating
    0
    hexawing is on a distinguished road

      0  

    Default


    Wonderful component!!

    But, one question: is there an example with queryMode: "remote" and typeAhead: "true" ? I tried in my project but it doesn't work.

    When I use queryMode: "local" while my store, it can work, but the paging display is wrong. If I use queryMode: "remote", then nothing displayed...

    Thank you!

  8. #158
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    36
    Vote Rating
    1
    Forn is on a distinguished road

      0  

    Default


    I found the bug if in the cpmponent press TAB button - the error is present. For exmapl,e select last visited item in the list.

    For me problem was fixed by comment line 611 and 613:
    Code:
    onListSelectionChange: function(list, selectedRecords) {
            var me = this,
            valueStore = me.valueStore,
            mergedRecords = [],
            i;
    
            // Only react to selection if it is not called from setValue, and if our list is
            // expanded (ignores changes to the selection model triggered elsewhere)
            if ((me.ignoreSelection <= 0) && me.isExpanded) {
                // Pull forward records that were already selected or are now filtered out of the store
                valueStore.each(function(rec) {
                    //if (Ext.Array.contains(selectedRecords, rec) || me.isFilteredRecord(rec)) { 
                        mergedRecords.push(rec);
                    //} 
                });

  9. #159
    Sencha User
    Join Date
    Dec 2011
    Posts
    9
    Vote Rating
    0
    Hooped is on a distinguished road

      0  

    Default bindStore() issue

    bindStore() issue


    Anyone else having an issue with bindStore() on boxselect? After I set a dataStore to the boxselect and "expand" it, if I call bindStore() with the new datastore as a parameter, it doesn't take. If I call bindStore with the first store, don't expand and then call bindstore again with a different store, when I expand I actually see the correct store data.

    To get around it for now I'm using the following kluge:
    Code:
    boxSelect.bindStore(myNewStore);
    boxSelect.picker.destroy();
    boxSelect.createPicker();
    I had a custom store object which I thought might be the problem but when I do the same test with an ext combobox, it works as expected.

  10. #160
    Ext JS Premium Member
    Join Date
    Sep 2008
    Location
    Raleigh, NC
    Posts
    145
    Vote Rating
    5
    qooleot is on a distinguished road

      0  

    Default


    In the original poster's demo page, for the first example there is a bug. I'm using chrome. Clear all the default selections, then type in states in this order (not via clicking them on the dropdown):

    texas alabama alaska maine florida.

    Then try and type in say wisconsin. Because that list went all the way to the right side, you somehow lose the cursor and it doesn't wrap to a new line.

    Thanks for the great work on this plugin!

Thread Participants: 94

  1. scottw (1 Post)
  2. Dumbledore (1 Post)
  3. mysticav (2 Posts)
  4. JorisA (5 Posts)
  5. bobmanc (2 Posts)
  6. notjoshing (4 Posts)
  7. grgur (1 Post)
  8. ValterBorges (2 Posts)
  9. WebProgrammer (1 Post)
  10. Schlurcher (1 Post)
  11. zacware (2 Posts)
  12. ngd (8 Posts)
  13. radtad (2 Posts)
  14. zombeerose (13 Posts)
  15. nicholasnet (1 Post)
  16. themightychris (3 Posts)
  17. abraxxa (8 Posts)
  18. ttbgwt (1 Post)
  19. Psychokrameur (2 Posts)
  20. commanche (1 Post)
  21. ernst96 (2 Posts)
  22. omarc (1 Post)
  23. qooleot (1 Post)
  24. foxmarco (1 Post)
  25. christophe.geiser (1 Post)
  26. wki01 (1 Post)
  27. purnama (1 Post)
  28. mediacept (1 Post)
  29. bareflix (2 Posts)
  30. User 0815 (1 Post)
  31. yuuzai (1 Post)
  32. talha06 (1 Post)
  33. xjpmauricio (1 Post)
  34. scishop (2 Posts)
  35. Smalltalker (1 Post)
  36. hazimdikenli (2 Posts)
  37. raz0r1 (1 Post)
  38. McQuack_82 (1 Post)
  39. elilindner (1 Post)
  40. hexawing (1 Post)
  41. maneljn (3 Posts)
  42. Tim Toady (2 Posts)
  43. alonweiss (1 Post)
  44. ubong (1 Post)
  45. salarmehr (5 Posts)
  46. koblass (1 Post)
  47. Karthikeyan.rajmohan (2 Posts)
  48. Reimius (1 Post)
  49. CSC-Germany (1 Post)
  50. sankarbaluz (2 Posts)
  51. alaley (2 Posts)
  52. navvn (2 Posts)
  53. danCTS (2 Posts)
  54. bentoo42 (1 Post)
  55. jmaia (2 Posts)
  56. maslofer (1 Post)
  57. cadror (3 Posts)
  58. mrinsan (1 Post)
  59. yumaa (1 Post)
  60. rsqw (2 Posts)
  61. mahesh21688 (3 Posts)
  62. derditze (3 Posts)
  63. kunalshah6363 (1 Post)
  64. NatVik (1 Post)
  65. softwareguy (1 Post)
  66. alicexyl (7 Posts)
  67. under_dog (1 Post)
  68. tommytob (2 Posts)
  69. charlie17 (5 Posts)
  70. nathanrice (1 Post)
  71. srarnold (3 Posts)
  72. ettavolt (1 Post)
  73. qnens (1 Post)
  74. nikadod (3 Posts)
  75. PanchiKB (1 Post)
  76. Hooped (1 Post)
  77. dedoz (3 Posts)
  78. metas (1 Post)
  79. lindemann-medien (2 Posts)
  80. nathanmelis (1 Post)
  81. cyborat (1 Post)
  82. Forn (1 Post)
  83. gaurav.rehan (1 Post)
  84. Avman2119 (3 Posts)
  85. zzhouag (5 Posts)
  86. andreas-spindler (3 Posts)
  87. Alvaro L (1 Post)
  88. hown (1 Post)
  89. edson.hh (2 Posts)
  90. QuantumScripting (1 Post)
  91. chungns (1 Post)
  92. Delphine (1 Post)
  93. folivieri (1 Post)
  94. Lpsmash (1 Post)

Tags for this Thread