Hi Walter
Greetings from Syncfusion support
Based on your query you want to render the color picker component on each row of the grid. You can achieve your requirement using the EJ2 Grid column template feature to render the custom component in the column.
Please refer the below code example and sample for your reference,
gridTemplate(props) {
return (
<div className="colorpicker">
<ColorPickerComponent id="color-picker" />
</div>
);
}
………………………………………………………….
<GridComponent dataSource={employeeData} width="auto" height="359">
<ColumnsDirective>
<ColumnDirective
headerText=" Color Picker "
width="180"
template={this.template}
textAlign="Center"
/>
…………………………………………………….
</ColumnsDirective>
</GridComponent>
|
Regards
Vignesh Sivagnanam