Hello,
I'm trying to convert a old application that is now using kendo react wrappers to pure KendoReact.
The issue I'm facing is that the selected values in my model are not objects, but are an array of primitive values.
Is there a way to specify a field to be used as value like it was with valuePrimitive in the old Kendo UI ?
My MultiSelect is declared as following:
<MultiSelect
ref={listRef}
data={dataSourceItems}
dataItemKey={props.dataValueField}
disabled={!props.enable}
textField={props.dataTextField}
value={uiContext.maStore[props.entityName] && uiContext.maStore[props.entityName][props.fieldName] && tsUtils.getSafeNumberArray(uiContext.maStore[props.entityName][props.fieldName].toJSON())}
onChange={changeHandler}
filter={props.filter}
/>
where maStore is a mobx-state-tree store, and dataSourceItems is a array of objects like:
[ {id: 100, code: "cod1", description: "description 1"}, ... ]
and
tsUtils.getSafeNumberArray(uiContext.maStore[props.entityName][props.fieldName].toJSON())
is an array of numbers
Thank you.
Kind regards