Devextreme-reactive: Remove CommandComponent on a per row basis?

Created on 22 Jan 2018  路  4Comments  路  Source: DevExpress/devextreme-reactive

I feel like this is possible but I couldn't understand how from the docs. I'd like to conditionally not show the CommandComponent for certain rows in the TableEditColumn (say for a RO object). It looks like I should be able to accomplish this using a cellComponent in the TableEditColumn, but I have no idea how to render the CommandComponent inside the cellComponent. Sorry if I am missing something obvious.

Grid question

Most helpful comment

Hi,

We don't currently have a simple API to complete this task, but it is possible to do this with a React API. Here is an example: https://stackblitz.com/edit/react-xhtyh6?file=index.js

All 4 comments

Hi,

We don't currently have a simple API to complete this task, but it is possible to do this with a React API. Here is an example: https://stackblitz.com/edit/react-xhtyh6?file=index.js

Fantastic! That's exactly what I was looking for :)

Hi,

We don't currently have a simple API to complete this task, but it is possible to do this with a React API. Here is an example: https://stackblitz.com/edit/react-xhtyh6?file=index.js

Thank you so much for posting this.

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.

Was this page helpful?
0 / 5 - 0 ratings