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
250
Iggrid binding doesn't work the first time
posted

Hi,

I am using an iggrid, on teh first load of the page, the grid gives me this error :

bower_components/ignite-ui/infragistics.lob.js

0x800a138f - JavaScript runtime error: Unable to get property 'data' of undefined or null reference

But if I try to reload the page, the iggrid is correctly populated.
I debugged the code, the data exists in my controller. 

When binding my grif through code using :

$("#Grid").igGrid("dataSourceObject", self.data);
$("#Grid").igGrid("dataBind");

The error happens during the dataBind even if self.data was corrcetly populated by a valid JSON.

Do you have an idea on what is happening ?

Thanks