Skip to content

Igx-Grid Highlight Editable field #12216

Answered by ddaribo
kevalgw asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kevalgw,

I believe you will find the Grid Conditional Cell Styling topic in our documentation very helpful on the matter. There you will find examples on how to apply conditional CSS classes or styles, based on some properties of the cells’ data, column, etc.

For your convenience, I have prepared this sample demonstrating how all the editable cells of a row that has a cell in edit mode are also “highlighted” with a border. The condition in this case is the following:

  private editableCellInEditModeCondition = (
    rowData: any,
    columnKey: any
  ): boolean => {
    let rowID = rowData[this.grid.primaryKey];

    let rowHasCellsInEditMode =
      this.grid.getRowByKey(rowID).cells…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kevalgw
Comment options

Answer selected by kevalgw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants