Create a Kendo field which can be bound with array of values and not just one value.
1 Answer 11 Views
Varun
Top achievements
Rank 1
Varun asked on 21 Jun 2021, 01:48 PM

Hi experts,

I have run into a problem where i have to update existing kendo grid implementation. Let me explain the ask as below.

Earlier we had a grid which was mapped with individual fields. For example, lets say i had a data of an employee which contains employee name, age, salary, address and department, perfect one-to-one mapping.

Now lets says employee got multiple departments. Business wants to keep same structure but change only Department column into multiple rows. Like if there are 2 departments for a particular employee i should have 2 rows in a single column against that employee. Have a look at the image attached. have a look at row 2 and column 3 and 4.

I am able to show it using template but while editing and saving it could not map to the actual field of array.

 

 

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 24 Jun 2021, 08:48 AM

Hello,

Without having a better understanding over the exact setup it would be difficult to determine why is this problem occuring. Can you please share with us the page code?

Additionally since this seems like an hierarchical structure where the departments are the sub-level, is modifying the logic to use a hierarchy an option for you?

Regards,
Angel Petrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Varun
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or