Skip to content
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

disable cell in edit mode #191

Closed
Elhamo opened this issue Feb 24, 2017 · 6 comments
Closed

disable cell in edit mode #191

Elhamo opened this issue Feb 24, 2017 · 6 comments

Comments

@Elhamo
Copy link

Elhamo commented Feb 24, 2017

Hi, could you please tell me how to disable a cell when edit action is clicked.
Thanks.

@Elhamo
Copy link
Author

Elhamo commented Feb 27, 2017

just added editable:false like this:

columns: {
handle: {
title: 'Handle',
editable: false,
},

@Elhamo Elhamo closed this as completed Feb 27, 2017
@nextsoftpl
Copy link

what if I would like to disable a particular row from edit, but not show the edit/delete buttons?

@charleswrayjr
Copy link

The problem with this is it still shows the field as editable, it just does not allow editing. This can be very confusing to the end user in a large scale deployment without training. Is there a way to not show the columns that cannot be edited as inputs?

@umairm638
Copy link

@charleswrayjr found any solution regarding this?

@DependencyHell
Copy link

DependencyHell commented Aug 24, 2018

About the confusing textbox not editable, here is how I fixed this using css :

dh-thing-component.scss :

@import '../../../@theme/styles/themes';

:host /deep/ {
  .form-control:disabled {
    background-color: #c1c0ba !important;
  }
}

To disable a particular row, there is the rowClassFunction, it should help, see : #463 and #355 (comment)

@Naik-Akshay
Copy link

how to disabled edit to whole cell and allow only particular row

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants