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
300
JSON object null if no initial records
posted

When I call my page to grab my JSON data and it returns records I can call data in the object or grid.

If the JSON comes back with no data and I try to add records and reference I get a null reference error on either the grid or the js object.

Is there a way to initialize the variable to that is no initial JSON comes back then it will not be null. It seems that igGrid can't add data if no initial rows come back.

Parents
  • 23953
    Offline posted

    Hi Donnie,

    Which method are you using to add records to the grid?

    Are you trying to change the data source after the grid is created?

     

    Thanks in advance,

    Martin Pavlov

    Infragistics, Inc.

Reply Children