1. #81
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    Quote Originally Posted by galdaka View Post
    The zip in first post still not work in IE6 (onRender fails ext-all-debug.js) and now have strange css issues in FF2.

    Greetings,
    I've just tried IE6 - no problems here - can you ellaborate? anyone else having problems?

    The code at the following url's is/should be the same version - do you have the same problems here:

    http://technomedia.co.uk/SuperBoxSelect/examples.html
    http://technomedia.co.uk/SuperBoxSelect/examples3.html

    I haven't tested with FF2 - it's an unsupported browser with an incredibly low percentage of users - if you have a real need to support it, the issues could probably be fixed if I knew what they were.

    Thanks,

    Dan

  2. #82
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    Quote Originally Posted by danh2000 View Post
    I'm going to start calling you HawkEye!

    Thanks.

    it pays to have a good IDE
    (tried IntelliJ IDEA 8 yet?)

  3. #83
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by danh2000 View Post
    I've just tried IE6 - no problems here - can you ellaborate? anyone else having problems?

    The code at the following url's is/should be the same version - do you have the same problems here:

    http://technomedia.co.uk/SuperBoxSelect/examples.html
    http://technomedia.co.uk/SuperBoxSelect/examples3.html

    I haven't tested with FF2 - it's an unsupported browser with an incredibly low percentage of users - if you have a real need to support it, the issues could probably be fixed if I knew what they were.

    Thanks,

    Dan
    I tried with old example in local. With new example all OK.

    Excellent work!!

    Greetings,

  4. #84
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    @mystix,

    I've never tried 'IntelliJ IDEA 8' - I've always used Eclipse. I'll have a look though - thanks.

    @galdaka,

    Thanks for trying again and reporting back

  5. #85
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    Hi,

    Fully integrated in my xtheme-gray-extend. Awesome extension!!

    Greetings,
    Attached Images

  6. #86
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    Quote Originally Posted by galdaka View Post
    Hi,

    Fully integrated in my xtheme-gray-extend. Awesome extension!!

    Greetings,
    It looks fantastic in gray - well done! and glad you like it

  7. #87
    Ext User
    Join Date
    Jul 2009
    Posts
    1
    Vote Rating
    0
    MarkBOneSmart is on a distinguished road

      0  

    Exclamation 3 Issues

    3 Issues


    IE 7 but probably all IE:
    When a SuperBoxSelect is drawn on a tab, the first onResize fails because the w isNaN .. Here is my modified code.

    Code:
        onResize : function(w, h, rw, rh) {
            var reduce = Ext.isIE6 ? 4 : Ext.isIE7 ? 1 : Ext.isIE8 ? 1 : 0;
            if (isNaN(w)) {
                //Control not rendered
            } else {
                this._width = w;
                if (this.outerWrapEl) {
                    this.outerWrapEl.setWidth(w - reduce);
                    if (this.renderFieldBtns) {
                        reduce += (this.buttonWrap.getWidth() + 20);
                        this.wrapEl.setWidth(w - reduce);
                    }
                    Ext.ux.form.SuperBoxSelect.superclass.onResize.call(this, w, h, rw, rh);
                    this.autoSize();
                }
            }
        },
    On BasicForm.Load, if the store is not populated, setValue blows out the store value. I decided to use the allowAddNewData functionality so that the control at least doesn't delete the value until the store does get populated.

    Code:
    setValue: function(value){
            var values = value.split(this.valueDelimiter);
            this.removeAllItems().resetStore();
            
            Ext.each(values,function(val){
                var record = this.findRecord(this.valueField, val);
                if(record){
                    this.addRecord(record);
                } else if (this.allowAddNewData) {
                    var item = new Object; 
                    item[this.valueField] = val;
                    item[this.displayField] = val;
                    
                    this.addItem(item);
                }
            },this);
            
        },
    The most severe problem is that when doing a load, I loose the ability to open the drop down via the drop button BUT the down arrow still works and the hold left click near the last item will also bring the list down as long as the left mouse button is clicked.

    From tracing, it seems that it goes into the function twice and self closes. I'm stuck on that one.




    [edit]
    Figured out my last issue ..
    Code:
            this.buttonExpand.addClassOnOver('x-superboxselect-btn-over').on('click', function(e) {
                e.stopEvent();
                if (this.disabled) {
                    return;
                }
                if (this.isExpanded()) {
                    return;
                    //this.multiSelectMode = false;
                } else if (this.pinList) {
                    this.multiSelectMode = true;
                }
                this.onTriggerClick();
            }, this);
    It seems that the the click event was being called multiple times - so the first click would show the drop down and then the second click would close it. The reason it worked on the demo was the click was being called 3 times, so it was remaining open.

    Test code .. yeah .. its so nested in my little application, but here is me loading the SuperBoxSelect after a BasicForm.Load

    Code:
                var cmb = Ext.getCmp('cmb_Skill');
                if (cmb) { if (JSON.Skill) { var JSONrec = JSON.Skill; if (cmb) cmb.store.loadRecords(cmb.store.reader.readRecords(JSONrec),false); } cmb.setDisabled(!JSON.Skill); if (clearValues) cmb.reset(); else {
                    var cmbV = cmb.getValue();
                    cmb.lastSelectionText = cmbV;
                    if(cmb.hiddenField){
                        cmb.hiddenField.value = cmbV;
                    }
                    cmb.setValue( cmbV );
                }}
    My SuperBoxSelect ..
    Code:
    {xtype:'superboxselect', id:'cmb_Skill', name:'cmb_Skill',  hiddenName:'Skill', fieldLabel:'Skill', allowBlank:false,mode:'local',displayField:'Skillname' ,valueField:'Skillvalue',store: new Ext.data.SimpleStore({fields:['Linkvalue','Skillvalue','Skillname'], data:MyArea.BLANK}) , lastQuery:''}
    Last edited by mystix; 11 Jul 2009 at 12:46 AM. Reason: added [edit] to clearly indicate modified portions of original post

  8. #88
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Default


    @MarkBOneSmart, you should probably post the test code you used so everyone else can carry on debugging from where you left off.

  9. #89
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698
    Vote Rating
    3
    danh2000 is on a distinguished road

      0  

    Default


    @MarkBOneSmart Thanks for reporting the problems, but I'm on a deadline at the moment and it will take some time to setup a test environment to replicate what you are doing. Unless you have a public facing demo that I can debug it will take me a few days before I can respond.

    Cheers,

    Dan

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

      0  

    Default


    This is a great component!

    I've found it helpful to also be able to pass in an array of values to setValue (instead of having to join() just for the value to be re-split()), so I made the following change:
    Code:
        setValue: function(value){
        	var values = Ext.isArray(value) ? value : ((typeof value == "string") ? value.split(this.valueDelimiter) : []);
        	this.removeAllItems().resetStore();
        	....

Thread Participants: 119

  1. galdaka (9 Posts)
  2. aconran (1 Post)
  3. stever (4 Posts)
  4. dj (1 Post)
  5. mystix (18 Posts)
  6. MarkB (3 Posts)
  7. DrZog (1 Post)
  8. JorisA (2 Posts)
  9. jheid (3 Posts)
  10. Joe (1 Post)
  11. mschering (1 Post)
  12. gigel (1 Post)
  13. akannu (1 Post)
  14. phillipL (1 Post)
  15. badgerd (1 Post)
  16. cmendez21 (1 Post)
  17. mjlecomte (1 Post)
  18. grgur (1 Post)
  19. xantus (1 Post)
  20. garraS (3 Posts)
  21. vahid4134 (2 Posts)
  22. Lloyd K (2 Posts)
  23. boonkerz (3 Posts)
  24. crxtech (3 Posts)
  25. mishanian (7 Posts)
  26. fpw23 (1 Post)
  27. sanjshah (6 Posts)
  28. Zolcsi (1 Post)
  29. SharePat (1 Post)
  30. mjhaston (1 Post)
  31. radtad (16 Posts)
  32. Joyfulbob (2 Posts)
  33. kveeiv (1 Post)
  34. armandoxxx (2 Posts)
  35. imran (1 Post)
  36. Eric24 (1 Post)
  37. drunknmunky (1 Post)
  38. raphac (1 Post)
  39. charleshimmer (1 Post)
  40. frankthetank (4 Posts)
  41. qooleot (3 Posts)
  42. gianpaulo (1 Post)
  43. dennispg (9 Posts)
  44. dasnk (1 Post)
  45. grahamda (1 Post)
  46. sdavids (1 Post)
  47. jasonb885 (1 Post)
  48. wemerson.januario (1 Post)
  49. dizor (3 Posts)
  50. Stju (5 Posts)
  51. extjs_new (1 Post)
  52. senacle (1 Post)
  53. elderotaku (2 Posts)
  54. Dumas (1 Post)
  55. grzegorz.borkowski (13 Posts)
  56. bueth (1 Post)
  57. nonyus (2 Posts)
  58. travisbell (2 Posts)
  59. Jangla (2 Posts)
  60. woooop (2 Posts)
  61. MH61 (2 Posts)
  62. TDub (1 Post)
  63. antoniode (5 Posts)
  64. xiongzhijian51 (1 Post)
  65. l0ga4 (1 Post)
  66. nohurge (2 Posts)
  67. MarkBOneSmart (1 Post)
  68. The Transporter (2 Posts)
  69. swarnendude (1 Post)
  70. arconen (2 Posts)
  71. mratzloff (9 Posts)
  72. Tom23 (1 Post)
  73. nadim (15 Posts)
  74. hongtj (2 Posts)
  75. max.hauser (2 Posts)
  76. dcw (1 Post)
  77. pilotsnipes (2 Posts)
  78. matthewcrist (2 Posts)
  79. fargs (1 Post)
  80. dvuja2 (2 Posts)
  81. sudhirhv (1 Post)
  82. lanhun (2 Posts)
  83. galoch (1 Post)
  84. frrogoy (1 Post)
  85. tboswell (1 Post)
  86. ozum (5 Posts)
  87. scusyxx (1 Post)
  88. hoca (1 Post)
  89. jayasreepc (1 Post)
  90. Jensen (1 Post)
  91. icarey (5 Posts)
  92. mohan_b (1 Post)
  93. skbach_pointyhat (1 Post)
  94. timbonicus (3 Posts)
  95. rachid.abdessamad (1 Post)
  96. ajitmogra (1 Post)
  97. Korbin (1 Post)
  98. istetska (3 Posts)
  99. ian.young (1 Post)
  100. muncher (2 Posts)
  101. sebterzi (2 Posts)
  102. forestclown (1 Post)
  103. Akey (1 Post)
  104. pret (1 Post)
  105. OpnSrce (1 Post)
  106. sriramkumarp (1 Post)
  107. extjs-dev (4 Posts)
  108. mvoss (1 Post)
  109. thomaskee007 (1 Post)
  110. rajshinny (1 Post)
  111. masood (1 Post)
  112. sebholl (1 Post)
  113. forestkwan (1 Post)
  114. deepthi_r (1 Post)
  115. panshr (1 Post)
  116. brian.moeskau (1 Post)
  117. ldashevskiy (1 Post)
  118. lbilde (1 Post)
  119. aoyii (1 Post)

Tags for this Thread