Hello -
I need to have multiple grids to a single asp.net MVC page? To add even more complexity the number of grids is variable also. I might be able to accomplish it with a hierarchical grid but thought I would explore this first. Thanks much
Best Gambling Site https://vulkanbets.pl/wplaty-i-wyplaty/. Be sure to visit it.
I have the same question with you when I work with geometry dash subzero. Now, everything is ok.
Hello Andrew,
I am glad that you find my suggestion helpful and were able to solve your issue.
Thank you for using Infragistics components.
Regards,
Monika Kirkova,
Infragistics
Thanks much for this. This really helped. Here is the solution I ended up coming up with. The model was an array of gridModels.
View:
@foreach (var m in Model)
{
@(Html.Infragistics().Grid(m)) <br />}
Controller:
[ActionName("editing")] public ActionResult GridUpdating(int QuotaID, string IONumber) { var modelList = new List <GridModel>();
//Infragistics Grid
var quotaDetailList = projectPricingBAL.getCostGridForQuotaFlatDemo(QuotaID); GridModel gridModel = new GridModel(); gridModel.AutoGenerateColumns = false; gridModel.ID = "Grid_QuotaEdit"; gridModel.PrimaryKey = "ID"; gridModel.DataSource = quotaDetailList.AsQueryable(); InitializeGridOptions(gridModel);
modelList.Add(gridModel); //add to an array
var quotaDetailList2 = projectPricingBAL.getCostGridForQuotaFlatDemo(25869); //hardcoded for testing
GridModel gridModel2 = new GridModel(); gridModel2.AutoGenerateColumns = false; gridModel2.ID = "Grid_QuotaEdit2"; gridModel2.PrimaryKey = "ID"; gridModel2.DataSource = quotaDetailList2.AsQueryable(); InitializeGridOptions(gridModel2);
modelList.Add(gridModel2); //trying to add to an array
return View(modelList); }