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
305
Getting Error: cannot call methods on igGridGroupBy prior to initialization; attempted to call method 'option'
posted

We are getting error when use the below function before groupby initalization. 

groupedColumns = $("#grid").igGridGroupBy("option", "groupedColumns");

http://jsfiddle.net/vrrenga/1q3b0pgw/

Any advice on this?

Parents
No Data
Reply
  • 9190
    Suggested Answer
    Offline posted

    Hi Renganathan,

    Thank you for posting on our forums.

    You're encountering this issue because the GroupBy feature logic in your igGrid implementation has been commented out. If you remove the comments (like this), it will allow the igGrid to initialize the itself with the igGroupBy feature and set the Product Name as the GroupBy Column. If you don't want to set the Product Name column as the GroupBy column, you can initialize the GroupBy feature (like this). Note, if you wish to use the GroupBy feature, it's required that you initialize it for the igGrid in this way.

    Please let me know if you have any questions regarding this matter.

Children
No Data