What I’m trying to do:
I want to add components to the Data Grid footer like you can in the Editor. However I am building the Data Grid from code and not sure what to reference in order to add components to that footer area.
What I’ve tried and what’s not working:
I don’t see any properties in code to access the footer.
Not a direct answer to your question unfortunately but are you creating the entire DataGrid
from code or just updating one that has been created in the designer?
If you are only updating an existing one, you could add a named column panel or flow panel to the footer and then just access and update that panel from code.
I am creating the entire DataGrid from code hence why I can’t just drop something in that area like a GridPanel in the Designer.
My temporary solution is just to create a footer row every time the table is rendered.
What about hiding the footer of the DataGrid, and adding your own home made footer?
I notice now that you are talking about a summary row, not the DataGrid footer.
If that is the case, then you are doing the right thing: add one row at the end of the list of dictionaries.
You can add some logic to the template form, for example to make the last row bold. If I remember correctly, that’s what I did in the DataGridJson. On the first example on this demo page you can see the result. (And I realize now that I left the Delete
button on the summary row of that demo… I will fix that)
Actually I did want to access the DataGrid footer from code. However, since I couldn’t figure that out I just made my own footer and disabled DataGrid’s.