I have a WebHierarciicalDataGrid (11.1) bound to a WebHierarchicalDataSource which has a further two child ObjectDataSources. However, when no data is brought back from the objects, rather than displaying my Error Template, a server error - Object reference not set to an instance of an object - occurs. Have I missed a property or something somewhere?
Cheers
Hello Paul,
Thank you for posting in our forum.
Are you returning an empty data object like an empty DataTable or an empty IList?
If that’s the case then the grid should just be empty and there shouldn’t be any errors returned.
If you’re returning null or some unsupported data type then the WebHierarchicalDataSource would throw and error and since the WebHierarchicalDataSource is a separate control the error would be thrown on the page.
Let me know if you have any questions or concerns.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support
We were returning Nothing. Returning an empty object fixed the issue.
Thanks