-
Notifications
You must be signed in to change notification settings - Fork 305
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
feat: add [Parameter] to/in DataGrid TemplateColumn SortBy #2041
Comments
You can already do that, just not directly in the parameter (example comes from the demosite):
What are you missing? |
My situation is the TemplateColumn created by foreach loop, it's dynamically created. Each TemplateColumn has different parameter for sorting. For example, we have dynamic object, the properties is not known until runtime, I need to pass each property to specific TemplateColumn for sorting, same as to have DataGrid context of List of key-value Dictionary. |
I think you can do that with a method that returns a GridSort result. You kan use the @key as a parameter for that method. |
The |
Thanks. It works. The button is a shadow element, cannot easy to add css style for it. |
This is possible but goes directly against the purpose of this library: supplying components leveraging the Fluent UI design system. You can target the component with CSS by using the
Closing this as the original issue is not an issue and provided guidance works. |
Is it possible to update DataGrid TemplateColumn SortBy to accept some parameters?
For some dynamic situations,
The text was updated successfully, but these errors were encountered: