Tree Grid cell formatting and editable on condition

Hi, I'm trying to get something work in the tree grid. I have some columns (cells) that needs to be formated and make editable/not-editable on some condition.
And when the value is edited the value changes and the condition must be re runned to format the cell and make editable/not editable.

How can I achieve this. I have manage on the creation of the grid but when the value is edited I cannot re run the formatting.

And edition of a cell in a certain column can reformat another cell in the same row.

Thanks.

3 Replies

PK Padmavathy Kamalanathan Syncfusion Team April 20, 2020 05:01 PM UTC

Hi Cesar,

Thanks for contacting Syncfusion Support.

QUERY: TreeGrid cell formatting and editable on condition

For making the cell editable/non editable based on conditions,we have prepared sample and shared you here. Please check the below link,

In the above sample, we have checked the value of boolean column (approved column) and based on it's value we have enabled/disabled the editing of "duration" column in the "cellEdit" event.

Please check the below help documentation,

We are quite unclear about the formatting query. Please provide us the below details, so that we could proceed further,
  1. please let us know how do you expect to format the cell
  2. share your complete tree grid rendering code
  3. Explaining your formatting requirement with an example will help us to understand better and provide solution.
Regards,
Padmavathy Kamalanathan




CS Cesar Smerling April 21, 2020 11:03 AM UTC

Hi, I managed to get it working with cell query info method to change the style of the cell. For me is better to use the ng-template but a I have a problem with the re draw of the grid when I add template to any editable column. I mentiod this in another post to you can close this one.

Thanks


AP Ashwini Paranthaman Syncfusion Team April 22, 2020 12:39 PM UTC

Hi Cesar, 
We are gald that you were able to get your issue fixed. 
Regards, 
Ashwini P. 


Loader.
Up arrow icon