[CLOSED] 'div' equivalent in ext.net?

  1. #1

    [CLOSED] 'div' equivalent in ext.net?

    Hi,

    I am implementing highcharts along with ext.net controls. The chart will render to 'div'. Is there any 'div' equivalent in ext.net? I need to implement border layout in the panel and in the center region I need to add the chart, so 'div' needs to add but ext.net doesn't support to add 'div' tag as item in ext.net panel. Please check the code and sscreenshot below

    
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <script runat="server">
    
    </script>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
            <Items>
                <ext:Panel ID="pnlCharts" runat="server" Region="Center">
                    <TopBar>
                        <ext:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <ext:ComboBox ID="cboLoanStatus" runat="server">
                                </ext:ComboBox>
                            </Items>
                        </ext:Toolbar>
                    </TopBar>                
                </ext:Panel>
            </Items>
        </ext:Viewport>    
        <div id="container" style="width: 800px; height: 400px; background-color:gray;">
        nothing to say
                        </div>
        </form>
    </body>
    </html>
    Click image for larger version. 
    
    Name:	HighChart.PNG 
    Views:	96 
    Size:	38.5 KB 
    ID:	3138
    Last edited by geoffrey.mcgill; Sep 08, 2011 at 6:05 PM. Reason: [CLOSED]
  2. #2
    Hi,

    You can add a <div> inside the <Content> region of an Ext.NET Container, including an <ext:Panel>.

    Example

    <ext:Panel runat="server" Title="Example" Height="215" Width="350">
        <Content>
            <div>Hello World</div>
        </Content>
    </ext:Panel>
    Geoffrey McGill
    Founder
  3. #3
    You can use ext:Container or ext:BoxComponent widgets which render as div and can participate in layout logic

Similar Threads

  1. [CLOSED] Ext.NET equivalent of this sample
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 20
    Last Post: Dec 09, 2011, 6:44 AM
  2. [CLOSED] Equivalent for spinner control 0.8
    By inayath in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 22, 2011, 8:25 AM
  3. [CLOSED] Is there an ext.net equivalent to asp:BulletedList?
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 22, 2010, 8:35 PM
  4. [CLOSED] [1.0] Equivalent to ASP.NET custom validator
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 24, 2010, 2:10 PM
  5. [CLOSED] Equivalent of Ext.ID via C# Codebehind
    By Steve in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 03, 2009, 3:53 PM

Tags for this Thread

Posting Permissions