This is a migrated thread and some comments may be shown as answers.

Binding Multiple Api in Kendo Grid

1 Answer 144 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Basim
Top achievements
Rank 1
Basim asked on 27 Nov 2019, 04:17 AM
My requirment is to display data from multiple Api into the grid , how can i manage the fields?

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 27 Nov 2019, 09:19 AM

Hello, Basim,

In this case, I can suggest parsing the data.

For example, if the ID field is called 'id' in one API, then ProductID in the second, parse them all the be id or ProductID. Apply this method for all fields with different names.

Then when the fields are parsed concatenate the arrays into a single array and pass it to the Grid:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Basim
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or