ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Hierarchical grid question
Title:
B
I
{code}
?
Hi i am looking to use the hierarchical / nested grids feature. Is it possible generate each underlying grid dynamically based upon how many unique ID's of the category exist? So if we had 2 unique categories, it would show 2 nested grid structures, 4 categories it would generate 4. And second, would it be possible in each nested grid structure to have different headers that come from the database table? In the example for hierarchical grids it looked like each nested table under the overall structure shared the same headers.
Save Changes
Cancel
eliawesome
asked at 15 Apr 2020
Answers
B
I
{code}
?
I presume we're discussing this demo: https://demo.aspnetawesome.com/GridNestingDemo#Nested-grids--Hierarchical-grid where hierarchical grid is achieved using nests, and the content of the nest is completely custom, just like opening a popup, so you define the content of that nest, it just so happens that partial view we've put a grid, so in the controller action you get the `Id` (key of the grid row model) and you return a partial view that will be loaded in the grid nest, what that view contains is up to you. You can have different headers, but you'll have to generate the `Columns[]` that you set in `Grid.Columns(columns)` dynamically
Save Changes
Cancel
Omu
answered at 15 Apr 2020
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