Hi,
I am trying to implement specific feature using kendo ui grid and MultiSelect Tree as editor template.
I tried making example within stackblitz, but unfortunately problem is that I don't have adequate data structure to make an example.
My use case is following:
I have kendo grid with multiple columns. One of these columns can have multiple elements with appropriate quantities.
For example, column name is Furniture, and user can select multiple types of furniture but also can provide quantity of selected furniture.
I have made kendo multiselectTree as an editor template for this column, and at the same time I used kendoMultiselectTreeNodeTemplate to add textbox to the all items in the tree. When I open editor first time and select, for example, Chairs with textbox value 4, and Tables with textbox value 1, it is perfectly fine displayed in the list. This part works fine. (multiselect shows: Chairs 4, Tables 1)
But, if I refresh page, I have no way of retrieving reference and when I open list again, I can't bind back values from tags to the textboxes in the list. Chairs and Tables are checked, but textbox remains empty.
Each row in my table is object with structure like this:
{
id: number,
orderId: string,
date: date,
orderedItems: [ ],
orderStatus: number
}
For example:
{
id: 24021,
orderId: 'PC-322',
date: new Date(),
orderedItems: [{itemId: 22, description: "Chair", nr: 4}, {itemId: 14, description: "Table", nr: 1}],
orderStatus: 3
}
Can you please suggest approach.
Thank you very much