[Data Grid Reactive] [Autogenerated Columns] Set cell data by binding/header name?
data-grid-reactive
Reactive icon
Forge component by Platform Maintenace
Application Type
Reactive

Hi, in auto generated columns mode (because I need to work on multiple templates), how can I set cell data without ColumnID, instead using binding/header name?


Is that possible using Javascript, please let me know how to do it.

Thanks.

Solution

Hey Harlin,


I created a sample that has a button calling this JS node. 


Notice we are using the column binding to retrieve the column.

I've attached the sample so you can take a look.

Please bear in mind that we didn't make all the necessary tests to ensure that it will work on all cases.

Please let us know if this helps.

 

Best regards,

Gabriel Lundgren

SetCellData.oml

Hey Harlin,


Just to make sure I understood you correctly, you want to set cell data after the grid has been initialized?

Correct. 

Solution

Hey Harlin,


I created a sample that has a button calling this JS node. 


Notice we are using the column binding to retrieve the column.

I've attached the sample so you can take a look.

Please bear in mind that we didn't make all the necessary tests to ensure that it will work on all cases.

Please let us know if this helps.

 

Best regards,

Gabriel Lundgren

SetCellData.oml

Thanks, it works nicely if I use API/ArrangeData server action.
Just out of curiosity, I tested using JSONSerialize, it didn't have any columns generated.

I tested using JSONSerialize, because it works for client-side local variable data list, eg: data from REST API.

Also, any clue on how to manipulate row checkbox? (OOT)

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