Aug 05, 2016, 1:54 PM
[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 7:45 PM.