This question is locked. New answers and comments are not allowed.
My data model has several values that can be null. When trying to bind these to columns in the grid I get the following type of error:
Microsoft JScript runtime error: 'approvedByBillingUser.Name' is null or not an object
function anonymous(data) {
return data.approvedByBillingUser.Name;
}
I'm binding the column using:
columns.Bound(o => o.approvedByBillingUser.Name);
it is possible that o.approvedByBillingUser is null and thus the above error. Is there anyway to get around this, it make the grid impossible to use if not. Thanks for any help in advance.
Microsoft JScript runtime error: 'approvedByBillingUser.Name' is null or not an object
function anonymous(data) {
return data.approvedByBillingUser.Name;
}
I'm binding the column using:
columns.Bound(o => o.approvedByBillingUser.Name);
it is possible that o.approvedByBillingUser is null and thus the above error. Is there anyway to get around this, it make the grid impossible to use if not. Thanks for any help in advance.