1. #61
    Sencha User salarmehr's Avatar
    Join Date
    Mar 2010
    Location
    Tehran
    Posts
    45
    Vote Rating
    1
    salarmehr is on a distinguished road

      0  

    Default


    How can I remove an item from drop-down menu when user select that items?
    (as SuperBox do).
    Thanks

  2. #62
    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


    Awesome - thanks!!!

  3. #63
    Sencha User
    Join Date
    Sep 2011
    Posts
    1
    Vote Rating
    0
    qnens is on a distinguished road

      0  

    Default


    Thank you sou much brother,.
    GBU



    obat kuat

  4. #64
    Ext JS Premium Member
    Join Date
    Dec 2007
    Posts
    229
    Vote Rating
    0
    ngd is an unknown quantity at this point

      0  

    Exclamation Showstopper bug!

    Showstopper bug!


    BoxSelect is great but I have a showstopper bug and would like at least a workaround. When I set the value field as an array e.g. value : ['AK'], I get an error in Chrome as well as FF : Uncaught RangeError: Maximum call stack size exceeded

    The bug is easy to reproduce. In boxselect.js (under examples), set value : ['AK'] instead of value : 'AK, CA'.

  5. #65
    Sencha Premium Member
    Join Date
    Mar 2008
    Posts
    92
    Vote Rating
    1
    kveeiv is on a distinguished road

      0  

    Default


    Quote Originally Posted by ngd View Post
    BoxSelect is great but I have a showstopper bug and would like at least a workaround. When I set the value field as an array e.g. value : ['AK'], I get an error in Chrome as well as FF : Uncaught RangeError: Maximum call stack size exceeded

    The bug is easy to reproduce. In boxselect.js (under examples), set value : ['AK'] instead of value : 'AK, CA'.
    Wow, sorry about that. I'll get this fixed up in an official build soon, but for now the following override should work:

    Code:
    Ext.override(Ext.ux.form.field.BoxSelect, {
        setValue: function(value, doSelect, skipLoad) {
            if (Ext.isArray(value)) {
                value = Ext.Array.map(value, function(val) {
                    if (val.isModel) {
                        return val.get(this.valueField);
                    }
                    return val;
                }, this).join(this.delimiter);
            }
            return this.callOverridden([value, doSelect, skipLoad]);
        }
    });

  6. #66
    Ext JS Premium Member
    Join Date
    Dec 2007
    Posts
    229
    Vote Rating
    0
    ngd is an unknown quantity at this point

      0  

    Default Thanks

    Thanks


    Thanks for the prompt reply. Hope you release 1.2.1 soon. Thanks again.

  7. #67
    Sencha Premium Member
    Join Date
    May 2007
    Location
    USA
    Posts
    73
    Vote Rating
    0
    notjoshing is on a distinguished road

      0  

    Default


    Quote Originally Posted by kveeiv View Post
    I haven't used it, but I believe ComboBox's configuration of 'pageSize' is exactly what you're looking for. BoxSelect currently doesn't manipulate the picker at all, so if it works for ComboBox it should work fine for this component as well.
    Thanks! I really like the interface for this widget. I ended up using the proxy to look up a smaller subset of values. That works well enough.

    Josh
    Using:
    ExtJS 2.2, 3.2, 4.0.7a
    WinXP SP3
    FF10,6; IE6; IE8; Safari

  8. #68
    Ext JS Premium Member
    Join Date
    Dec 2007
    Posts
    229
    Vote Rating
    0
    ngd is an unknown quantity at this point

      0  

    Question Bugs!

    Bugs!


    Hi kveeiv,

    Bug 1) I have tried your fix and unfortunately BoxSelect just stops working. I am not even able to select values into it.

    Bug 2) If I use a remote store, and if I set multiSelect to false, the Name corresponding to the value field does not show up in the box. If I set multiSelect to true, it shows up.

    Bug 3) If I set the value to be a CSV e.g. '123, 456' or if I set it to an array, BoxSelect sends me the inital query infinite times. It just doesn't stop.

    I don't mean to pester you as I understand you must be busy with other things but we have a decision to make on whether we go with BoxSelect or not. Any idea, if and when these bugs could be fixed?

    Thanks again!

  9. #69
    Sencha Premium Member
    Join Date
    Sep 2011
    Posts
    45
    Vote Rating
    3
    charlie17 is on a distinguished road

      0  

    Default


    When pressing the TAB key after selecting an entry from the list, is there a way to keep the cursor within the box as opposed to it cycling to the next control on the page?

  10. #70
    Sencha Premium Member
    Join Date
    May 2007
    Location
    USA
    Posts
    73
    Vote Rating
    0
    notjoshing is on a distinguished road

      0  

    Default a couple suggestions

    a couple suggestions


    I'm using BoxSelect 1.2 in Ext 4.0.2a with a jsonp proxy, and I noticed that I'd get errors when I clicked on a newly rendered BoxSelect without a value. To avoid this, I modified the code around 433:

    PHP Code:
                if( me.valueStore ) {//MOD
                    
    me.valueStore.each(function(rec) {
                        var 
    pickStore.findExact(valueFieldrec.get(valueField));
                        if (
    >= 0) {
                            
    selection.push(pickStore.getAt(i));
                        }
                    });
                }
    //MOD 
    I also noticed that the emptyText value was rendering even when values existed for the drop-downs. I looked into the code and changed the code around line 1030 to prevent this:

    PHP Code:
                if (isEmpty) {
                    
    inputEl.dom.value emptyText;
                    
    inputEl.addCls(me.emptyCls);
                } else {
                    
    inputEl.dom.value '';//MOD
                    
    inputEl.removeCls(me.emptyCls);
                } 
    Thanks for a great plugin!

    Josh
    Using:
    ExtJS 2.2, 3.2, 4.0.7a
    WinXP SP3
    FF10,6; IE6; IE8; Safari

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