In our grid we are providing an expansion field and providing a detail grid as given in the Master-Detail grid example:
React Data Grid Master-Detail Grids - KendoReact
In all of the examples the detail grid takes up the entire width of the main grid. I can limit the detail grid to be the screen size and align it to the left of the master grid, but I am having difficulty having the grid be sticky within the master grid. (here is an example from MUI Data Grid - Master detail - MUI X)
I have tried making the inner div
position: sticky;
width: 90vw;
left: 5vw
but it does not scroll within the grid. Am I missing something easy?
wrapping the detail grid I added:
Then I can override the relative position of every row and container for the grid until I get to one container outside of the grid. This sticks.
But calculating the expansion panels size and placing the dropdowns within it, seems wrong. Also this solution only works if the height of the main grid is static. (in my case it was, but that may not always be true. As in if the grid sits in a Y scrollable div, the absolute position will not scroll vertically with the grid, breaking this solution)