Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
Error Template - Object reference not set to an instance of an object
posted

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

Parents
No Data
Reply
  • 29417
    Verified Answer
    Offline posted

    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

     

     

Children