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
435
igGrid load-on-demand with AutoGenerateColumns
posted

Hello,

I am in the process of evaluating IgniteUI for on of our project at Boeing.

I followed the load-on-demand example provided by Infragistics. Everything is working as expected. However, instead of specify the columns. I would like it to Auto Generated. I set the AutoGenerateColumns on the GridModel to true, but I got the javascript error complaining about no Columns defined.

Please help.

Thank you

Parents
No Data
Reply
  • 23953
    Offline posted

    Hello Phong Nguyen,

    Try passing data to the GridModel initially. The Grid MVC Helper wrapper requires some data so that it can infer the columns and their data types for you even when you have specified AutoGenerateColumns = true.

    When you pass initial data the igGrid load-on-demand(Append Rows on Demand) will take only the first chunk when initializes and any subsequent load will be done with remote request.

    Hope this helps,
    Martin Pavlov
    Infragistics, Inc.

Children