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

[Solved] Grid throwing exception when trying to dot over a null value (ODATA)

1 Answer 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 21 Jan 2015, 07:31 PM
I have the Kendo grid displaying OData query results. My grid is displaying asset entities which have several related entities such as Location. If I try to expand and display Location.Name, and Location is null then the grid will break. Is there anyway around this?

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 23 Jan 2015, 01:53 PM
Hi Brian,

You can use a column template and add a null check. For example: 
"#=if(Location){#  #=Location.Name# #}#"


Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Brian
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or