Disable unselect in DataTable
Initially - no. But as soon as he selects any row he can only change the selection, not 'unselect'. Most data grids I know work this way. What's the point to unselect in single selection mode? Anyway, that could be optional setting. Another useful thing would be to make onSelect/UnselectRow event handler return a value allowing to cancel selection change.
As I figured out, what I said before is not completely true. The selection is removed BEFORE the event gets fired. But on a reset, the angular change detection wont get it right. Resetting the selection in a setTimeout does work. But the row selction flickers in the UI. Not really nice...
Ok. rc4 seems to fix this issue. But brings another one. Now you can only multi-select using ctrl-click. Would be nice to have it configurable so, I can either just click or ctrl-click.
Implementing shift-click to select multiple rows at a time would be very nice too.
Implementing shift-click to select multiple rows at a time would be very nice too.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
In mobile devices , it multi selects with tapping no cutely key. After 1.0 we plan to add an attribute to make this customizable as it seems there are different preferences.
Is this possible to avoid unselection even using ctr+select. on load I keep first row selected then on every selection earlier selection gets cleared and that row gets selected.
But What if at any given time I want one row selected. My selection mode is single.
But What if at any given time I want one row selected. My selection mode is single.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 4 guests