Good afternoon,
Is there a way to populate a second grid based on the outcome of the read action for the first grid?
For example, the read action for grid1 pulls a list of files from the file system in and runs checks against each file. The list generated is returned to load grid1. During the processing a number of errors are generated, creating a second list. Ultimately I'd like grid2 to display that list.
It seems unnecessary to have a separate action for grid2 that is essentially running the same processing, just returning a different list.
With the two grids having AutoBind set to false I assume I can control the order the girds are populated. Could grid2 be populated from a list stored in ViewData?
This article explains how two models can be returned to a single View, but ToDataSourceResult in the Controller can only return one model:
https://www.c-sharpcorner.com/UploadFile/ff2f08/multiple-models-in-single-view-in-mvc/
Kind regards,
Richard