I'm unable to get the HierarchicalGrid to work. What i want to do is to make a unbound row with four columns with unbound data (buttons and text).
For each row in the grid i would like to add one unbound Hierarchical row with buttons and text. Like this one http://www.igniteui.com/hierarchical-grid/aspnet-mvc-helper but without dynamic data loading and just one row with buttons and text in the instead of Product listing.
My datamodel
public int Id { get; set; } public string Name { get; set; }
ASPX
@(Html.Infragistics().Grid(Model.AsQueryable(
.Columns(column =>
{
column.For(x => x.Id).HeaderText("ID").Width("15%");
column.For(x => x.Name).HeaderText("Name").Width("20%");
})
.ColumnLayouts(layouts =>
layouts.For(x => x.???)
.Key("?")
.AutoGenerateColumns(false)
column.Unbound("link").HeaderText("Links").DataType("text").Template("<div class='text-right'><a class='btn btn-default btn-sm' type='button' href='/Details/${Id}'><span class='glyphicon glyphicon-list-alt'></span>Details</a><a class='btn btn-default btn-sm' type='button' href='Edit/${Id}'><span class='glyphicon glyphicon-pencil'></span>Edit</a></div>").Width("15%");
});
}
))
Hello,
I'm just following up to see if you need any further assistance with this issue. If so please let me know.