Clarity: Disabling checkboxes on datagrid rows

Created on 6 Oct 2017  路  19Comments  路  Source: vmware/clarity

[x] bug
[ ] feature request
[ ] enhancement

I have a datagrid with checkboxes, but some of them are disabled for a reason (lack of permissions, object state or something else).

Expected behavior

If I click on the "Select All" checkbox in the title, all rows EXCEPT the disabled ones are selected.

Actual behavior

If I click on the "Select All" checkbox in the title, all rows INCLUDING the disabled ones are selected.

datagrid shipped enhancement

Most helpful comment

@hippee-lee , As @kathygit mentioned that we need configurable checkbox-group inside datagrid. So make it configurable. 馃憤
If team is quit busy, I can contribute on same. :-)

All 19 comments

@gnomeontherun
Can we validate that this is the case? If so, let's move this into the backlog as a bug. If not, then can we ask for a plunkr?

Just need to be able to add an input on a row that disables checkboxes and radio buttons for that row.

I am working on this .

I have the question related to this issue. How to disable checkbox to avoid the selection of certain rows in a datagrid?

@govi2010 : Do you have any updates for us on this ?

Hey guys, do we have any update on this?

Thanks

@govi2010 mentioned that he was working on this and I haven't heard back.

@belyan, @msoni11, and @kalpeshhpatel
This isn't scheduled for us in the near term. It's marked open for external contribution if it is a critical issue for your teams.

@mathisscott I have completed this but can not find my uncommitted code. From last 2 month, i have lots of work to do so cannot find time to get this done. I will try to complete this weekend.

Thanks

Hey @govi2010 , thanks for your reply. Were you able to complete this? It's bit urgent for us.

Thanks

We received a request to make sure that the "select all" checkbox at the top properly ignores disabled rows, so I'm posting it here to make sure we don't forget. Please add a unit test for this specific case.

Moving back to the backlog for now.
This fix needs to wait until we wrap the pure consumer models to an internal model so that we can take advantage of a shared state.

We really need the ability to disable or hide the selection checkbox or radio.
When can we have it ? Thank you!

@hippee-lee
Could you give an update on where this is and what may be holding it up?

When I last looked at this the issue is that the datagrid model needs to be able to wrap the consumers model so that the row select can use the shared state. Right now, iir correctly, the row doesn't know about the disabled state for its consumer model.

@hippee-lee I really lost my fix in my old laptop. Recently I tried to looked into this bug . but I forgot how reproduce this issue So i can fix again and push my code.

@hippee-lee , As @kathygit mentioned that we need configurable checkbox-group inside datagrid. So make it configurable. 馃憤
If team is quit busy, I can contribute on same. :-)

[x] bug
[ ] feature request
[ ] enhancement

I have a datagrid with checkboxes, but some of them are disabled for a reason (lack of permissions, object state or something else).

Expected behavior

If I click on the "Select All" checkbox in the title, all rows EXCEPT the disabled ones are selected.

Actual behavior

If I click on the "Select All" checkbox in the title, all rows INCLUDING the disabled ones are selected.

Hey,
Could you please share that piece of code. My use-case is, after loading the data, some of the checkboxes should be disabled and when selecting all, only those that are enabled gets selected. I'm having some trouble implementing this.

@hamza1100 Can you post onto StackOverflow and tag with vmware-clarity for implementation questions? Also see our documentation https://clarity.design/documentation/datagrid to find relecant information about disabling selection for a row.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gnomeontherun picture gnomeontherun  路  27Comments

vmwareux-vivian picture vmwareux-vivian  路  41Comments

hippee-lee picture hippee-lee  路  25Comments

corganfuzz picture corganfuzz  路  24Comments

mrmokwa picture mrmokwa  路  28Comments