Add cell-selection-custom-palette samples for Grid, Hierarchical Grid, and Tree Grid#932
Add cell-selection-custom-palette samples for Grid, Hierarchical Grid, and Tree Grid#932
Conversation
Co-authored-by: tishko0 <15924795+tishko0@users.noreply.github.com>
Co-authored-by: tishko0 <15924795+tishko0@users.noreply.github.com>
Applied the palette structure and selection options from the grid sample to both hierarchical grid and tree grid samples in commit 36bd6f6. Changes include:
|
Co-authored-by: tishko0 <15924795+tishko0@users.noreply.github.com>
Removed all width, minWidth, and maxWidth properties from columns in all three samples (Grid, Hierarchical Grid, and Tree Grid) in commit 2c98a8e. The grids now auto-size to fill available space.
Updated in commit 2c98a8e - removed all column width constraints from all three samples. |
|
Just a note here: This includes custom palette not only for cell selection, but for row and column as well. I am marking it as verified since it has the cell-selection behaviour, but I am wondering whether it will not be too much to show in the section for cell selection. If we do decide to leave it like this, maybe we should add some additional lines to the documentation mentioning the extra stuff available here. @dkamburov @tishko0 what do you think? |


Summary
Updated all three cell-selection-custom-palette samples to remove column width constraints, allowing the grids to take all available space and auto-size columns.
Changes Applied
All Three Samples (Grid, Hierarchical Grid, Tree Grid):
widthproperties from columnsminWidthandmaxWidthproperties from hierarchical grid columnsCSS Palette Structure
All samples include a comprehensive palette with:
Screenshots
Grid with Auto-Sized Columns:

Shows the grid taking full available width with:
Original prompt
Fixes #931
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.