Panel in Viewport can't Collapse,PLZ Help!

  1. #1

    Panel in Viewport can't Collapse,PLZ Help!

    in ie8 or less than ie7 6

    on click split button ,throw javascript error.
    Click image for larger version. 

Name:	viewport_collapse_error.jpg 
Views:	97 
Size:	7.5 KB 
ID:	5400

    javascript error :

    " JavaScript runtime error: Unable to get undefined or null reference attributes "setSize" "

    I'm use Debug mode,find in the 58800 line from debug file " ext.axd?v=28764"

        setSurfaceSize: function (width, height) {
            this.surface.setSize(width, height);//this line report error
            if (this.autoSize) {
                var bbox = this.surface.items.getBBox();
                this.surface.setViewBox(bbox.x, bbox.y - (+Ext.isOpera), width, height);
            }
        },

    plz help !thanks!

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebUI.Default" %>
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Test</title>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
        <ext:Viewport runat="server" Layout="BorderLayout">
            <Items>
                <ext:Panel runat="server" Header="false" Region="North" Border="False" Height="70">
                    <Content>
                        Top
                    </Content>
                </ext:Panel>
                <%--West--%>
                <ext:Panel runat="server" Header="false" Region="West" Border="false" Layout="FitLayout" MinWidth="240"
                    Collapsible="true" CollapseMode="Mini"  Split="true">
                    <Content>
                        West
                    </Content>
                </ext:Panel>
                <%--Center--%>
                <ext:TabPanel runat="server" ID="pnlMain" Split="true" Region="Center" Margins="0 4 4 0" Cls="tabs"
                    MinTabWidth="115">
                    <Items>
                        <ext:Panel ID="tabHome" runat="server" Title="Home" HideMode="Offsets" Icon="Application">
                            <Content>
                                Center
                            </Content>
                        </ext:Panel>
                    </Items>
                </ext:TabPanel>
            </Items>
        </ext:Viewport>
    </body>
    </html>
  2. #2
    try not setting Split = true on the center tabpanel.
  3. #3

    try not setting Split = true on the center tabpanel.

    Quote Originally Posted by jchau View Post
    try not setting Split = true on the center tabpanel.
    Thank you for your reply.


    I tried your method, but it does not work.


    I conceal a problem, my operating system is Windows 8 pro, I use the the IE10 debug, normal mode is able to run, however, the above error when with IE10 debugging tool to simulate IE8 and IE7, I do not know that this is What causes.


    I real IE8 in Windows XP system tried is good.
  4. #4
    IE10 is not supported yet, any compatibility modes are not supported also and will not be supported at all
  5. #5
    Quote Originally Posted by Vladimir View Post
    IE10 is not supported yet, any compatibility modes are not supported also and will not be supported at all
    Thank you very much

    I understand
  6. #6
    Here is a related post regarding IE10 support in Ext.NET v1.
    http://forums.ext.net/showthread.php?20129#post106366

Similar Threads

  1. [CLOSED] Panel - Hide Header on Collapse
    By amitpareek in forum 2.x Legacy Premium Help
    Replies: 15
    Last Post: Oct 17, 2012, 10:47 AM
  2. [CLOSED] Panel Collapse Button Disappears
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 21, 2012, 1:05 PM
  3. [CLOSED] Panel Collapse Stateful
    By Neil_Walters in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 18, 2010, 5:59 AM
  4. West panel does not collapse
    By sz_146 in forum 1.x Help
    Replies: 3
    Last Post: Jan 30, 2009, 12:13 PM
  5. Panel collapse AjaxEvents Not Working?
    By Tbaseflug in forum 1.x Help
    Replies: 2
    Last Post: Jan 28, 2009, 11:22 AM

Tags for this Thread

Posting Permissions