ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Awesome Dynamic Grid Model
Title:
B
I
{code}
?
This is the normal procedure to build a model to populate a Awesome grid: var gridModel = new GridModelBuilder<Customer>(query, g) { Key = "Id", Map = o => new { o.Id, o.Username, }, }.Build(); in this case I add 2 fields "Id" and "Username" but is it possible to do same in dynamic mode ? ex. If I have a list of field names is it possible to do a foreach and add the relative object property ?
Save Changes
Cancel
Meccanica Rossi
asked at 20 Sep 2018
Answers
B
I
{code}
?
you can set/modify the columns dynamically on each "get data" call; have a look at this demo for an example: https://demo.aspnetawesome.com/GridArrayDataSource
Save Changes
Cancel
Omu
answered at 20 Sep 2018
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK