1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Leipzig, Germany
    Posts
    73
    Vote Rating
    0
    A.Rothe is on a distinguished road

      0  

    Default Force attach of a tab item

    Force attach of a tab item


    Hi,

    I have a TabPanel which has multiple items. On every TabItem there are some fields. I have written a FormButtonBinding class, which monitors all the TabItems (which contain FormPanels). The monitoring class uses FormPanel.isValid() which calls on every field Field.isValid(). Here is a call of Field.getRawValue() which will only work if the field has been rendered. How I can force an attach/rendering for the hidden panels?

    Thanks
    Andre

  2. #2
    Sencha User
    Join Date
    Sep 2011
    Location
    Leipzig, Germany
    Posts
    73
    Vote Rating
    0
    A.Rothe is on a distinguished road

      0  

    Default


    Hm, it seems to be trivial.

    I have looked into the GXT code to find out more about the rendering/attaching process. The TabPanel has a CardLayout, which renders the child widgets when the parent panel (Window) has been added to the RootPanel. But the renderComponent() method renders only the active widget (the active TabItem) of the TabPanel or all items, if the flag deferredRender is set to false. The CardLayout sets this flag to true, so the render process stops after the selected TabItem.

    In a sub-class of TabPanel I have set the flag to false, so all TabItems are rendered and attached to the DOM and my monitoring class can validate all fields of the hidden TabItems.

    Solved!
    André

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar