Specifically the simple subgrid, not “grid as subgrid”.
I’ve tried a variety of methods, but none seem to work.
If I hook into subGridBeforeExpand, the table isn’t ready for me to select the headers and set the css.
If I hook into subGridRowExpanded the subGrid won’t even render.
The align property in the subGridModel only affects the cell value.
Here is my model for reference:
subGrid: true,
subGridUrl: myUrl,
subGridModel: [{
name: ["Item", "Qty"],
width: ["200", "100"],
align: ["right", "right"],
param: ["Id"]
}]
You are right, that there are too few callbacks in Subgrids and Treegrids. Nevertheless because I found your question very interesting challenge (+1 from me) I do found a workaround.
You can do the following:
You can here the demo which looks like the following after the expanding of subgrids: