-
Notifications
You must be signed in to change notification settings - Fork 6
Add cell-selection-custom-palette samples for Grid, Hierarchical Grid, and Tree Grid #932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: vnext
Are you sure you want to change the base?
Conversation
Co-authored-by: tishko0 <15924795+tishko0@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot The samples are lacking palette structure and selection options. I have updated the grid sample. Can you please review the changes on it and apply them to hgrid and tgrid samples
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:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Please remove the min/max width of the columns as we want the grid to be taking all the available space on its own.
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. |


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.