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

      0  

    Default


    @mratzloff Thanks for your suggestions - I agree and will implement them soon

    I suppose you know that you could add the following to 'remove' the expand button:
    PHP Code:
    .x-superboxselect-btn-expand {
       
    displaynone;

    @mystix Agreed - I prefer the event name clear!

    Thanks,

    Dan

  2. #142
    Ext User
    Join Date
    Jul 2009
    Posts
    19
    Vote Rating
    0
    mratzloff is on a distinguished road

      0  

    Default


    In initComponent() I think you need to put the highlighted code below the parent call, instead of before. Otherwise the store might not be initialized.

    Code:
    Ext.ux.form.SuperBoxSelect.superclass.initComponent.call(this);
    
    if(this.mode === 'remote' && this.store){
        this.store.on('load', this.onStoreLoad, this);
    }
    Also, could you give an example of how you intended users to load initial data directly from a remote data store, so that it populates the data store count?

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

      0  

    Default


    I can't think of a scenario where the order would matter there - although I'm possibly still half asleep..!

    With regards to the store and the count - wouldn't you just use the totalProperty and root configs like a regular combo?

  4. #144
    Ext User
    Join Date
    Jul 2009
    Posts
    19
    Vote Rating
    0
    mratzloff is on a distinguished road

      0  

    Default


    Quote Originally Posted by danh2000 View Post
    I can't think of a scenario where the order would matter there - although I'm possibly still half asleep..!

    With regards to the store and the count - wouldn't you just use the totalProperty and root configs like a regular combo?
    Well, I'm new to Ext JS, but I was getting an error (no function by that name, I believe) in Safari prior to changing the order, and now I'm not. It appears that the parent class initializes all of the xtype classes. Manually generating the store class (via Ext.ComponentMgr.create()) prior to using it also worked for me.

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

      0  

    Default


    .. of course, when using an xtype it would matter! I tend not to use them myself.

    Thanks - I'll include that change in the next version.

  6. #146
    Sencha - Services Team Stju's Avatar
    Join Date
    Dec 2008
    Location
    Redwood city, California
    Posts
    290
    Vote Rating
    3
    Stju is on a distinguished road

      0  

    Lightbulb Sugesstion

    Sugesstion


    Hi!
    It would be very nice if this component in some stage have possibility to add icon not only in selected result line but, in dropdown list same as it is IconCombo made by Saki
    Actually icon class is already passed to component, it needs to just rendered with some template or like that..
    Once again thanks for this great stuff!
    Stju

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

      0  

    Default


    @Stju,

    Thanks for the feedback - I have considered this myself.. I'll probably add it in a future release.

  8. #148
    Ext User
    Join Date
    Oct 2008
    Posts
    9
    Vote Rating
    0
    dennispg is on a distinguished road

      0  

    Default bug in getValueEx method

    bug in getValueEx method


    I am attempting to wrap this amazing extension within an asp.net control and need the ability to read out the value and display fields for the selected items, and discovered a bug in the getValueEx method in the process.

    It seems the scope is not being set on the call to this.items.each() and thus this.valueField, etc are undefined. I'm including the fixed version below:

    getValueEx: function() {
    var ret = [];
    this.items.each(function(item) {
    var newItem = {};
    newItem[this.valueField] = item.value;
    newItem[this.displayField] = item.display;
    newItem[this.classField] = item.cls;
    ret.push(newItem);
    }, this);
    return ret;
    },

    Along these lines, is there any easy way to have the value which is automatically written back into the applyTo element be the JSON encoded return from getValueEx?

    Thanks!

  9. #149
    Sencha Premium Member cmendez21's Avatar
    Join Date
    Jun 2007
    Location
    Mexico D.F.
    Posts
    478
    Vote Rating
    0
    cmendez21 is on a distinguished road

      0  

    Default


    Hi first of all cool extension

    but i have a question:
    Is there a way (property , override) to let the control grow at certain height and display a scroll bar if its needed ? cause i use some forms that need to be a certain height tabs and so on

    thanks
    E2CS: Extjs - Event calendar solution | XtPrinter
    Calendar Thread | XtPrinter Thread| Blog

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

      0  

    Default


    @dennispg,

    Thanks for the report regarding getValueEx

    Sorry, but I didn't quite follow the question about applyTo - can you please elaborate?

    @cmendez21,

    Thanks for the feedback, unfortunately that is not available in the current version, although I have plans to enable this in future.

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