[CLOSED] Problem with Grids

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Problem with Grids

    Hi,

    Im trying to create a grid for my application and its not being possible.

    I Have copied your example about a basic grid and is still not working. Here is what i've tried:

    <%@ Page Language="C#" %>
    
    
    <!DOCTYPE html>
    
     <script runat="server">
        public static List<object> Data = new List<object>
        {
            new
            {
                name = "Lisa",
                email = "lisa@simpsons.com",
                phone = "555-111-1224"
            },
    
            new
            {
                name = "Bart",
                email = "bart@simpsons.com",
                phone = "555-222-1234"
            },
    
            new
            {
                name = "Homer",
                email = "homer@simpsons.com",
                phone = "555-222-1244"
            },
    
            new
            {
                name = "Marge",
                email = "marge@simpsons.com",
                phone = "555-222-1254"
            }
        };
    </script>
    
    <html>
    <head runat="server">
        <title>Ext.NET Mobile Example</title>
       
    </head>
    <body>
        <ext:ResourceManager runat="server" Theme="Triton" />
    
        <ext:Grid runat="server" Title="Simpsons">
            <Store>
                <ext:Store runat="server" DataSource="<%# Data %>" AutoDataBind="true">
                    <Fields>
                        <ext:ModelField Name="name" />
                        <ext:ModelField Name="email" />
                        <ext:ModelField Name="phone" />
                    </Fields>
                </ext:Store>
            </Store>
            <Columns>
                <ext:Column runat="server" Text="Name" DataIndex="name" Width="100" />
                <ext:Column runat="server" Text="Email" DataIndex="email" Width="210" />
                <ext:Column runat="server" Text="Phone" DataIndex="phone" Width="150" />
            </Columns>
        </ext:Grid>
    </body>
    </html>
    This shows the Grid, but it shows it empty, theres no data on it.


    And another question (I dont know if I should open a new thread for it):

    Is it possible to make something like "command column" to select a row like we can do in Ext.Net? I would like to do something like MultiSelectionGrid to select one or various rows, but I would like to select and insert them into a List, not to delete them.
    Last edited by fabricio.murta; Mar 13, 2020 at 11:03 PM. Reason: no feedback in over 7 days

Similar Threads

  1. [CLOSED] One to many grids
    By registrator in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: May 05, 2015, 9:07 PM
  2. Replies: 2
    Last Post: Aug 07, 2014, 3:56 PM
  3. Render 2 grids
    By LLdeOJ in forum 1.x Help
    Replies: 2
    Last Post: Jan 26, 2011, 9:06 AM
  4. Two Grids get value
    By JsonTerre in forum 1.x Help
    Replies: 0
    Last Post: Mar 09, 2009, 11:04 PM
  5. DnD Between 2 Grids
    By davidhoyt in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 13, 2009, 2:02 AM

Posting Permissions