HI,
In our project we have a requirement where we want the magnitude and unit of the lag column to be separate that is in one column we have to type the number and in another column we have to select the corresponding unit from the combo . I have tried to bring it on but the unit and the magnitude column are not syncing . I have attached the code I tried below .
{
text: "Lag",
type: "duration",
field: "fullLag",
width: "72px",
renderer: ({ value }) => {
return (value._magnitude);
},
editor: {
allowNegative: true,
},
},
{
text: "UoM",
type: "duration",
field: "fullLag",
width: "90px",
renderer: ({ value }) => {
return (value._unit);
},
editor: {
type:'combo',
items:["day","hour","minute"],
},
},
I have also attached the screenshot to show how I want it to be .
what can be done to meet this requirement ?