-
-
Notifications
You must be signed in to change notification settings - Fork 534
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
Datagrid - Unselect child data grid #1705
Comments
Just hold the CTRL key while clicking on a row. It's a standard way of unselecting the row and it is supported by DataGrid. |
If you really want unselect on click you can just use a SelectedEntity like this in your component.
|
This action unselects the parent grid but does not collapse the child grid. Child grid stays expanded |
Child grid is controlled by Example
|
@stsrki does this still work? I am unable to reproduce in the demo. |
@StephenOTT It works, I have just tried the demo in Chrome and Firefox. What browser do you have? |
I am on mac and tried with https://bootstrapdemo.blazorise.com/tests/datagrid Using CTRL plus click on a row (all options turned off on the grid) just produces the browsers context menu. Tried with latest FF, Chrome, and Safari using OSX latest |
I have no idea how to reproduce it without mac... |
Yes, it should collapse if it is opened. Or open if it is already collapsed. Basically toggle open states. |
Okay yup.. does not seem to work... x-ref: #2500 |
I can only asume on Mac ctrl key is not detected properly. Is it named diferently? |
@StephenOTT Any chance you could clone Blazorise and debug it on Mac? In file |
Similar scenarios: https://stackoverflow.com/questions/45438932/ho-do-i-capture-ctrl-click-on-macos-with-d3js Using the "Command" button: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey Command+Click on a row currently triggers the HandleClick method, BUT there is no property (MetaKey) to identify that it was pressed. |
How it is usually done on Mac? The select and deselect of items.. |
I have seen a mix of usage. But If you follow close to how windows works: example: CTRL+W is close tab in a browser. The Mac equiv is Command+W (MetaKey+W) |
I can confirm this is working fine on Windows |
@StephenOTT I honestly don't know MAC very well.. But do you not have this corresponding key? |
We have custom logic for (multi)selecting rows in DataGrid and the |
We need to do some digging...any developer around who knows how this is usually handled with a MAC? Even with js you'd have the same problem right? |
Hello guys, Press the Mac's Ctrl Key while clicking the button and send us the log? |
Currently when you select a datagrid row that has a child grid, the child grid expands when you click on the parent row but if you click on the parent row again, you can not deselect the row and collapse all the child grid rows. The only way to collapse the child grid row is to click on another row.
Can you add a feature that collapses the Child Grid within a selected parent row when you click on the parent row?
The text was updated successfully, but these errors were encountered: