[CLOSED] [#1367] [4.1.0] Data is not showing in Grid.

Threaded View

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

    [CLOSED] [#1367] [4.1.0] Data is not showing in Grid.

    The data is not showing up in the Grid. Could I be missing something:

    @{ 
        var x = Html.X();
        var data = new List<object>{
            new
            {
                Name = "Lisa"
            },
    
            new
            {
                Name = "Bart"
            },
    
            new
            {
                Name = "Homer"
            },
    
            new
            {
                Name = "Marge"
            }
        };
    }
    
    @(
        x.Grid()
            .Plugins(x.EditableGrid())        
            .Columns(
                x.Column()
                    .DataIndex("Name")
                    .Text("Name")
            )
            .Store(x.Store()
                .AutoDataBind(true)
                .Fields(
                    x.ModelField().Name("Name")
                )
                .Data( data )
            )     
    )
    Last edited by Daniil; Aug 10, 2016 at 6:45 PM.

Similar Threads

  1. Replies: 9
    Last Post: Jun 18, 2014, 1:24 PM
  2. Replies: 5
    Last Post: Oct 02, 2013, 9:57 PM
  3. No data showing
    By zaggle in forum 1.x Help
    Replies: 2
    Last Post: Mar 23, 2012, 1:09 AM
  4. GridPanel not showing all data
    By iltwams in forum 1.x Help
    Replies: 1
    Last Post: Oct 01, 2010, 6:09 PM
  5. Grid Panel not showing complete data
    By Nagaraj K Hebbar in forum 1.x Help
    Replies: 2
    Last Post: Aug 17, 2009, 10:42 AM

Posting Permissions