[CLOSED] ViewPort Internet Explorer bug

  1. #1

    [CLOSED] ViewPort Internet Explorer bug

    Hi, I use Razor and ext.net v2. In this example I create menu and add it on ViewPort. On Firefox and Chrome evrerything works fine. But in IE9 I have this error:

    Microsoft JScript runtime error: DOM Exception: HIERARCHY_REQUEST_ERR (3)

    Here is the code:

    @{
        //1. nivo
        Button btnHome = new Button { ID="btnHome", Text="POČETNA"};
        Button btnDokument = new Button { ID = "btnDokument", Text = "DOKUMENT" };
        Button btnZahtev = new Button { ID = "btnZahtev", Text = "ZAHTEV" };
        Button btnOdobrenje = new Button { ID = "btnOdobrenje", Text = "ODOBRENJE" };
        Button btnPlacanje = new Button { ID = "btnPlacanje", Text = "PLAĆANJE" };
        Button btnIzvestaji = new Button { ID = "btnIzvestaji", Text = "IZVE?TAJI" };
        Button btnAdmin = new Button { ID = "btnAdmin", Text = "ADMINISTRACIJA" };
        Button btnMojNalog = new Button { ID = "btnMojNalog", Text = "MOJ NALOG" };
    
        //2. nivo
        MenuItem mniDokumentUnos = new MenuItem { ID = "mniDokumentUnos", Text = "Unos dokumenta", Icon = Icon.Add };
        MenuItem mniDokumentIzmena = new MenuItem { ID = "mniDokumentIzmena", Text = "Izmena dokumenta", Icon = Icon.ApplicationEdit };
        MenuItem mniDokumentBrisanje = new MenuItem { ID = "mniDokumentBrisanje", Text = "Brisanje dokumenta", Icon = Icon.Delete };
    
        Menu menuDokument = new Menu { ID = "menuDokument" };
        menuDokument.Add(mniDokumentUnos);
        menuDokument.Add(mniDokumentIzmena);
        menuDokument.Add(mniDokumentBrisanje);
        btnDokument.Menu.Add(menuDokument);
    
    
        Toolbar tbrMenu = new Toolbar { ID = "tbrMenu" };
        tbrMenu.Items.Add(btnHome);
        tbrMenu.Items.Add(btnDokument);
        tbrMenu.Items.Add(btnZahtev);
        tbrMenu.Items.Add(btnOdobrenje);
        tbrMenu.Items.Add(btnPlacanje);
        tbrMenu.Items.Add(btnIzvestaji);
        tbrMenu.Items.Add(btnAdmin);
        tbrMenu.Items.Add(btnMojNalog);
    
        Viewport vpMenu = new Viewport { ID="vpMenu" };
        vpMenu.Items.Add(tbrMenu);
        
    }
    
    @Html.X().Container().ID("ContainerMenu").Add(vpMenu)

    Problem don't exists when remove ViewPort and add toolbar to container:

    @Html.X().Container().ID("ContainerMenu").Add(tbrMenu)
    Is this a bug and how to fix it?
    Last edited by Daniil; Feb 28, 2012 at 12:16 PM. Reason: [CLOSED]
  2. #2
    Hi,

    ViewPort cannot be added to any container. It is always top-level widget (SINGLE top-level widget)

    Please replace
    @Html.X().Container().ID("ContainerMenu").Add(vpMenu)
    by
    @vpMenu.ToBuilder()
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Yes, that is solution! Thanks! :)

Similar Threads

  1. [CLOSED] Internet Explorer 9 compatibility
    By SandorD in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Mar 21, 2011, 9:00 AM
  2. MenuItem in Internet Explorer
    By reiben in forum 1.x Help
    Replies: 3
    Last Post: Nov 26, 2010, 6:07 PM
  3. Internet Explorer exception
    By igitur in forum 1.x Help
    Replies: 3
    Last Post: Oct 06, 2010, 2:17 PM
  4. [CLOSED] internet explorer cannot open the internet site
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 28, 2009, 10:30 AM
  5. Internet Explorer 8
    By Ben in forum Open Discussions
    Replies: 3
    Last Post: Feb 25, 2009, 12:38 AM

Tags for this Thread

Posting Permissions