Results 1 to 4 of 4

Thread: Difference between Rendered Visible and Rendered non visible components

  1. #1
    Sencha User harman's Avatar
    Join Date
    Jul 2011
    Location
    India
    Posts
    138
    Answers
    2
    Vote Rating
    3
      0  

    Default Unanswered: Difference between Rendered Visible and Rendered non visible components

    HI All,

    I am using ExtJS 4.0.7 with Chrome and FF.
    I have a tab panel with 4 tabs. Each tab has a grid which has a column containing combo box.
    I want all the combo boxes on all tabs pre rendered before i visit non default active tab.

    I do so using
    Code:
    deferredRender: false,
    defaults: { hideMode: 'offsets' },
    in tab panel's config.

    Still i see there is some event that doesn't get fired for combos present on non active tabs.
    That causes problem with their layout.
    This doesnt happens for the combos present on the default active tab.

    Also refer
    http://www.sencha.com/forum/showthread.php?215906-Trigger-Wrapping-in-ComboBox&p=876541#post876541

    L
    ooking desperately for a solution

    Thanks in advance

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,388
    Answers
    716
    Vote Rating
    499
      0  

    Default

    As mentioned in the post you referenced ..

    -Can you duplicate this in a small test case so we can review.
    -Have you tried 4.1.1? There where numerous problems with 4.07 layouts.

    Scott.

  3. #3
    Sencha User harman's Avatar
    Join Date
    Jul 2011
    Location
    India
    Posts
    138
    Answers
    2
    Vote Rating
    3
      0  

    Default

    Hi Scott,

    I will try put some sample code.
    I tried a little more testing and found that deferredRender has something to do with this because if i set it true the components are all fine on non active tabs.

    defaults: { hideMode: 'offsets' },
    doesnt seem to do anything.

    Is there an alternate way to pre-render components on non active tabs?

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,388
    Answers
    716
    Vote Rating
    499
      0  

    Default

    deferredRender: false will render all. The issue I see here is that the combo are in a grid column and are not displayed until you are in edit mode. In this case, I would see no need to render all as they will not be displayed until you edit the row/cell.

    'offsets' will ensure that the combo size is maintained.

    Scott.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •