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

GridColumn field value

1 Answer 198 Views
Wrappers for React
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 27 Oct 2018, 04:25 PM

I am working with the Kendo grid in react and have an issue.  My  json data has several fields.  One of these fields contains an array of other objects.  I know how many items are contained within the array.  My  issues is that I  don't seem to be able to specify in the <GridColumn> component the correct "field" option.  I have tried field="myArrrayField[0].myNestedObject.name but this returns  no  results.  Without  modifying my data format is there a way to achieve what I am attempting? If this is unclear I can provide  more information if needed.  I have seen a jquery example https://dojo.telerik.com/AloSUJiq that seems  to do exactly what I need, but again I am using the react component. Thanks for any help or  insight you can provide.

 

Kevin

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 29 Oct 2018, 09:10 AM
Hello, Kevin,

Thank you for the details.

The wrapper version can work by accepting the same object of options as the jQuery Grid.

I can suggest using this approach as it can save time converting jQuery Grid to a React one as the options format will stay the same:

https://stackblitz.com/edit/react-afvle9?file=app/main.js 

I hope this is helpful.

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
Wrappers for React
Asked by
Kevin
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or