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

      0  

    Default


    Quote Originally Posted by Tim Toady View Post
    Actually, a slightly cleaner approach would be to add true as the second param on the Ext.Array.from that is already there to return a new reference
    Thanks for the report, good catch. Added to next commit. I'll push these various changes up to github so that people that are following that repo can get them as they happen, and will let those build up for a few days before releasing a 2.0.1 so that people don't get release paralysis.

  2. #122
    Sencha User
    Join Date
    Jul 2011
    Location
    San Francisco, CA
    Posts
    103
    Vote Rating
    5
    alicexyl is on a distinguished road

      0  

    Default


    kveeiv, thank you very much for all your hard work on this great widget! It works great for me in Chrome and IE9, but in IE8, I'm getting error "SCRIPT438: Object doesn't support property or method 'addEventListener' ". Here's my BoxSelect config:
    Code:
            var nameCombo = {
                xtype: 'boxselect',
                id: 'nameCombo',
                width: 430,
                hidden: true,
                fieldLabel: "Select a name", 
                store: nameStore,
                triggerAction: 'all',
                valueField: 'nameId',
                displayField: 'value',
                renderFieldBtns:false,
                listConfig: {
                    resizable: true,
                    cls: 'comboDisable'
                },
                listeners: {
                    'beforeshow': function (cb, record, index) {
                                         ...
                    },
                    'select': function (cb, record, index) {
                                         ...
                    },
                    'beforeselect': function (cb, record, index) {
                                         ...
                    }
                },
                emptyText: "Enter a name", 
                queryMode: 'local'
            };
            // Then add this as an item in a container to be rendered
    This is happening in onRender(), which calls initTrigger(), which calls mon(triggerWrapper, {...}):
    Code:
        initTrigger: function() {
                ...
                me.mon(triggerWrap, {
                    click: me.onTriggerWrapClick,
                    mouseup: me.onTriggerWrapMousup,
                    scope: me
                });
                ...
    Then it fails at registering the click handler:
    Code:
    addListener: function(element, eventName, fn, scope, options) {
                ...
                var dom = element.dom || Ext.getDom(element),
                    bind, wrap;
                ...
                if (dom.attachEvent) {
                    dom.attachEvent('on' + bind.eventName, wrap);
                } else {
                    dom.addEventListener(bind.eventName, wrap, options.capture || false);
                }
    Looks like the box select's dom is a DispHTMLElementCollection in IE8, with no attachEvent(). In IE9, it's an HTMLTableElement, with attachEvent(). This isn't a problem for a regular combo box somehow. Could you help provide any insight for fixing? Would really appreciate any help with this blocking issue.

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

      0  

    Default


    @alicexyl Can you replicate this in a plain examples environment or provide a more simplified use case? I am unable to produce this error.

    BoxSelect does not do any special handling of the trigger field on its own, so I am assuming this is something external to the class that you'll be able to get more help on in the q&a forum.

    There are a couple of things that I can quickly note as places to start your debugging efforts though. The first is that 'renderFieldBtns' is not a valid configuration option so my first assumption would be that it is something happening in an override somewhere or this field was used as a replacement of another field and expected to have the same internal behavior. The second is that the 'id' configuration is being used. This is typically dangerous at best, you should look over the warnings about this configuration in the Ext docs as it could easily cause problems with your rendering and events.

  4. #124
    Ext JS Premium Member
    Join Date
    Jul 2008
    Location
    Miami, FL
    Posts
    56
    Vote Rating
    1
    omarc is on a distinguished road

      0  

    Default


    Thanks for the update! I had been using this component with 4.0 and really liked it.

    I have one suggestion, I noticed that there is a fixed amount of 35 pixels in Ext.ux.layout.component.field.BoxSelectField. If this could be configurable, that would be great since I have small fields that have multiSelect=false and they generate a new line when I don't need one.

    Keep up the great work!

    Omar

  5. #125
    Sencha User
    Join Date
    Jul 2011
    Location
    San Francisco, CA
    Posts
    103
    Vote Rating
    5
    alicexyl is on a distinguished road

      0  

    Default


    kveeiv, not sure exactly what happened, but the widget works in IE8 for me now. It's possible the Ext 3 to 4 migration tool I was using was interfering with it. There's no issue after all.

  6. #126
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    2
    Vote Rating
    0
    alaley is on a distinguished road

      0  

    Default Is boxselect-2.0 compatile with ExtJS-4.0.7?

    Is boxselect-2.0 compatile with ExtJS-4.0.7?


    Hello!

    I have tried to switch to boxselect-2.0 instead of 1.3 on my ExtJS-4.0.7 based project,
    but got exceptions in BoxSelect.js. Looks like "valueStore" is not initialized, because "bindStore" function was renamed to "onBindStore".
    So, should boxselect-2.0 be used with ExtJS 4.1+ only?

    Excuse me for the dumb question, if any.

  7. #127
    Ext JS Premium Member
    Join Date
    May 2008
    Location
    Austria, Vienna
    Posts
    218
    Vote Rating
    1
    abraxxa is on a distinguished road

      0  

    Default


    Yes that is a dumb question because the author wrote in his 4.1 support post that its only compatible with 4.1: http://www.sencha.com/forum/showthre...l=1#post818135

  8. #128
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    2
    Vote Rating
    0
    alaley is on a distinguished road

      0  

    Default


    Thank you for pointing!

    BTW, it would be good to see such mentions on the first page, because "now w/ 4.1 support!" does not automatically mean of dropping 4.0 support.


  9. #129
    Sencha User
    Join Date
    Jul 2011
    Location
    San Francisco, CA
    Posts
    103
    Vote Rating
    5
    alicexyl is on a distinguished road

      0  

    Question Field display template

    Field display template


    How do we change the template used to display the dropdown fields, and the selected fields? In SuperBoxSelect, the configs were tpl and displayFieldTpl. Woudl appreciate your help!

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

      0  

    Default


    2.0.1 is now available for download. This release was largely centered around documentation. Please see the first post for more details.

    Quote Originally Posted by alaley View Post
    Thank you for pointing!

    BTW, it would be good to see such mentions on the first page, because "now w/ 4.1 support!" does not automatically mean of dropping 4.0 support.

    Fair enough, adding that to the original post now.

    Quote Originally Posted by alicexyl View Post
    How do we change the template used to display the dropdown fields, and the selected fields? In SuperBoxSelect, the configs were tpl and displayFieldTpl. Woudl appreciate your help!
    With the release of 2.0.1, I've included an example that shows these configurations. Check it out!

Thread Participants: 93

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

Tags for this Thread