Hello and thanks for your reply,
I read your reply and based on that:
Sorry, but it takes hours/days to read all the code you send
Because it completely understandable but i did not send the whole code in order for you to read all of it.
So, if i say from all the code i send you:
1) Run the code
2) Login
3) visit http://localhost:3000/to/transfers/grid/
4) The only code that you have to read is GridWsHelper.js and GridConfig.js files and nothing else from all the code i have send, in order to help me with my problem would be okay ?
By the way, I did find the issue with that problem on current thread : i was using
{
id: "vehicleCategory-field",
text: 'Vehicle',
field: 'vehicleCategory',
// align: "center",
renderer(props) {
if (typeof props.value === "object") {
return operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES]
.find(record => record.id === props.value.data.id)?.name
} else if (Number.isInteger(props.value)) {
return operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES]
.find(record => record.id === props.value)?.name
}
},
editor: {
...comboConfig,
items: operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES],
required: true,
},
autoWidth: true,
},
when i updated to the following it was able to match it as expected
{
id: "vehicleCategory-field",
text: 'Vehicle',
field: 'vehicleCategory',
// align: "center",
renderer(props) {
if (typeof props.value === "object") {
return operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES]
.find(record => record.id === props.value.data.id)?.name
} else if (Number.isInteger(props.value)) {
return operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES]
.find(record => record.id === props.value)?.name
}
},
editor: {
...comboConfig,
required: true,
store: {
data: operatorSummaries[WS_TYPES.VEHICLE_CATEGORIES],
//grouper: [{field: "name"}]
}
},
autoWidth: true,
},