10
Views
2
Comments
[DataGrid Reactive Dynamic Columns] [DataGrid Reactive Dynamic Columns] How to add another "static" column
Question
datagrid-reactive-dynamic-columns
Reactive icon
Forge component by Henrique Silva
Application Type
Reactive

Hi , in the  demo application of DataGrid Reactive Dynamic app  there is only 1 state column  "date".

 I want to use more then 1 static columns . How can I achieve this ?

  • Default  

Header Column Name | Dynamic C1 | Dynamic C2 | Dynamic C3  |

Header Colm Data 1     |       Value      |       Value       |       Value       |

 Header Colm Data 2     |       Value      |       Value       |       Value       |

Header Colm Data 3     |       Value      |       Value       |       Value       |


  •  I like to have

 Header Column nameX      | Header Column Name | Dynamic C1 | Dynamic C2 | Dynamic C3  |

|   Header colm data X1      | Header Colm Data 1     |       Value      |       Value       |       Value       |

|   Header colm data X2      | Header Colm Data 2     |       Value      |       Value       |       Value       |

|   Header colm data X3      | Header Colm Data 3     |       Value      |       Value       |       Value       |


Thanx

Arnold

Hello Arnold!

When I implemented this code, I didn't plan to have multiple Header Columns. Making this change on the code would also probably mean to redo all the JS and C# code for this asset.

My suggestion for you would be to try to define some logic to get the second column header data as a dynamic column, maybe in a separate query and append the results to the output of your first query.

Regards!

Thanx Henrique for you're answer , i followed up you're suggestion and that's the way to do it :-

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.