[CLOSED] Is there an ext.net equivalent to asp:BulletedList?

  1. #1

    [CLOSED] Is there an ext.net equivalent to asp:BulletedList?

    I just need a simple way to display a simple unordered list of items that come from a store. Is this possible?
    Last edited by geoffrey.mcgill; Sep 23, 2010 at 4:20 PM. Reason: [CLOSED]
  2. #2
    Hi,

    The <ext:XTemplate> would do this, although requires some hand configuration.

    https://examples1.ext.net/#/Miscella...late/Overview/
    Geoffrey McGill
    Founder
  3. #3
    It doesn't appear that I can use this within an ext:ToolTip
  4. #4
    Hi jmcantrell,

    There is no property like 'Template' in the Tooltip control. But this control supports templates.

    Please look at the example.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Import Namespace="System.Collections.Generic" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void ApplyClick(object sender, DirectEventArgs e)
        {
            var tpl = new XTemplate { ID = "Template1" };
    
            tpl.Html = @"<p>Name: {Name}</p>
                       <p>Company: {Company}</p>
                       <p>Location: {City}, {State}</p>
                       <p>Kids:
                       <tpl for=""Kids"" if=""Name=='Jack Slocum'"">
                       <tpl if=""Age &gt; 1""><p>{#}. {parent.Name}'s kid - {Name}</p></tpl>
                       </tpl></p>";
    
            tpl.Overwrite(this.ToolTip1, new
            {
                Name = "Jack Slocum",
                Company = "Ext JS, LLC",
                Address = "4 Red Bulls Drive",
                City = "Cleveland",
                State = "Ohio",
                Zip = "44102",
                Kids = new object[] {
                    new { Name = "Sara Grace", Age = 3 },
                    new { Name = "Zachary", Age = 2 },
                    new { Name = "John James", Age = 0 }              
                }
            });
    
            tpl.Render();
        }
    </script>
    
    <!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 runat="server">
        <title>Dynamic Template - Ext.NET Examples</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:Button runat="server" Text="Test button with tooltip">
            <ToolTips>
                <ext:ToolTip ID="ToolTip1" runat="server" Html="Hello!" />
            </ToolTips>
        </ext:Button>
        <ext:Button runat="server" Text="Apply Template">
            <DirectEvents>
                <Click OnEvent="ApplyClick">
                    <EventMask ShowMask="true" />
                </Click>
            </DirectEvents>
        </ext:Button>
        </form>
    </body>
    </html>

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] 'div' equivalent in ext.net?
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 06, 2011, 6:03 PM
  3. [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
  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

Posting Permissions