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

How to bind a column to a object's subobject's property when the subobject could be null?

2 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Amit
Top achievements
Rank 1
Amit asked on 26 Apr 2011, 06:45 PM
How to bind a column to a object's subobject's property when the subobject could be null? Given below works fine with server side binding but throws client side error on ajaxbinding.

columns.Bound(m => m.ObjectOne.SubObjectOne.Property)

data.ObjectOne.SubObjectOne is null

2 Answers, 1 is accepted

Sort by
0
Hector
Top achievements
Rank 1
answered on 26 Jul 2011, 11:53 PM
I have the same problem.. if someone know the solution please answer this post.

Thankyou.
0
Amit
Top achievements
Rank 1
answered on 27 Jul 2011, 02:56 AM
I end up populating subobjects are always i.e. never null but have values.
Tags
Grid
Asked by
Amit
Top achievements
Rank 1
Answers by
Hector
Top achievements
Rank 1
Amit
Top achievements
Rank 1
Share this question
or