Hello Telerik Community!
I'm encountering a situation where the header text becomes blank for all columns within a RadGrid NestedViewTemplate after expanding a sibling NestedViewTemplate row. Here's the breakdown (you might need to draw this one out):
RadGrid1 contains it's own columns along with a NestedViewTemplate. We'll call this column "Summary.NVT". Within "Summary.NVT" is RadGrid2 with it's own unique columns. We'll call this child grid, "Details". The "Details" table is dynamically generated upon callback "Summary_ItemCreated". When "Summary.NVT" is expanded for row 0, the "Details" grid and all of it's columns are properly displayed. When "Summary.NVT" is then expanded for row 1, "Details row 0" retained it's rows but without column header text and "Details row 1" is now properly displayed with column header text.
Following me? Tricky to explain. There is one variable which changes the above behavior. For the "Details" grid, if I specify "AutoGenerateColumns" as true, my column headers will work all the time. This is great aside from losing formatting capabilities. I would prefer to add dynamically created columns via "GridBoundColumn" objects.
The reason for the dynamically generated nested details grid is to display different detail columns for each expanded summary record. Some summaries will have different detail columns than others.
Any advice on retaining my column header text when expanding multiple rows containing dynamically generated grids?
I'm encountering a situation where the header text becomes blank for all columns within a RadGrid NestedViewTemplate after expanding a sibling NestedViewTemplate row. Here's the breakdown (you might need to draw this one out):
RadGrid1 contains it's own columns along with a NestedViewTemplate. We'll call this column "Summary.NVT". Within "Summary.NVT" is RadGrid2 with it's own unique columns. We'll call this child grid, "Details". The "Details" table is dynamically generated upon callback "Summary_ItemCreated". When "Summary.NVT" is expanded for row 0, the "Details" grid and all of it's columns are properly displayed. When "Summary.NVT" is then expanded for row 1, "Details row 0" retained it's rows but without column header text and "Details row 1" is now properly displayed with column header text.
Following me? Tricky to explain. There is one variable which changes the above behavior. For the "Details" grid, if I specify "AutoGenerateColumns" as true, my column headers will work all the time. This is great aside from losing formatting capabilities. I would prefer to add dynamically created columns via "GridBoundColumn" objects.
The reason for the dynamically generated nested details grid is to display different detail columns for each expanded summary record. Some summaries will have different detail columns than others.
Any advice on retaining my column header text when expanding multiple rows containing dynamically generated grids?