[CLOSED] JavaScript error with MultiSelect inside BorderLayout and TabPanel

  1. #1

    [CLOSED] JavaScript error with MultiSelect inside BorderLayout and TabPanel



    The attached example throws a javascript error (Microsoft JScript runtime error: 'this.view' is null or not an object) on validation of the FormPanel. Actually it's the MultiSelect control inside the second Tab of the TabPanel that throws the error. If the MultiSelect is placed inside the first Tab or if the second Tab has been activated before validation of the FormPanel, then everything works fine.


    With a similar configuration I also had the error on initial load of the window (not only on validation). Any ideas?


    Cheers, Martin
  2. #2

    RE: [CLOSED] JavaScript error with MultiSelect inside BorderLayout and TabPanel

    Hi,

    The problem related is that TabPanel doesn't render tab's controls until tab's activation. To solve the problem you can set for TabPanel
    DeferredRender="false" LayoutOnTabChange="true"

    Also we have fixed that MultiSelect's issue and your example should works without above properties (but if you want to get selected indexes, add/remove css styles and etc for MultiSelect in inactive tabwhich is not activated yet then those tabpanel's properties are required)
  3. #3

    RE: [CLOSED] JavaScript error with MultiSelect inside BorderLayout and TabPanel



    Hi Vladimir

    Thanks, your suggestion with the two properties eliminates the problem with the MultiSelect control but creates a new rendering issue with a ComboBox control also on the second Tab of a TabPanel. The width of the ComboBox and it's items gets lost (see the attached screenshot). Actually the ComboBox is set to be equal width (150px) with the other controls on the selected Tab.
  4. #4

    RE: [CLOSED] JavaScript error with MultiSelect inside BorderLayout and TabPanel

Similar Threads

  1. [CLOSED] JavaScript error in IE after loading MultiSelect from Popup
    By jthompson in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Apr 26, 2011, 12:52 PM
  2. Partial View Error inside TabPanel
    By David Pelaez in forum 1.x Help
    Replies: 1
    Last Post: Feb 07, 2011, 3:08 PM
  3. Replies: 10
    Last Post: Sep 22, 2010, 10:07 PM
  4. Replies: 1
    Last Post: Jun 08, 2010, 12:51 AM
  5. [CLOSED] javascript error on tabpanel
    By WP in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 27, 2008, 10:10 AM

Posting Permissions