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
925
igPivotView destroy
posted

Hello,
I'm having problems trying to destroy igPivotView object.

If I call destroy method on igPivotView and then try to redraw the object, an error is displayed, saying that the DataSelector is not properly set:

 $("#pivotGrid").igPivotView("destroy");

 $("#pivotGrid").igPivotView(options);

This raises the error:

TypeError: Unable to get property 'option' of undefined or null reference
  at _setOption (http://localhost:60207/Scripts/ignite/modules/infragistics.ui.pivotview.js:30:4815)
  at Anonymous function (http://localhost:60207/Scripts/jquery-ui-1.11.3.js:415:5)
  at $.Widget.prototype._setOptions (http://localhost:60207/Scripts/jquery-ui-1.11.3.js:665:4)
  at $.Widget.prototype.option (http://localhost:60207/Scripts/jquery-ui-1.11.3.js:657:3)
  at Anonymous function (http://localhost:60207/Scripts/jquery-ui-1.11.3.js:526:6)
  at each (http://localhost:60207/Scripts/jquery-2.1.3.js:374:6)
  at jQuery.prototype.each (http://localhost:60207/Scripts/jquery-2.1.3.js:139:3)
  at $.fn[name] (http://localhost:60207/Scripts/jquery-ui-1.11.3.js:523:4)

This is the row where the error occurs:

// infragistics.ui.pivotview.js:30:4815
this.dataSelector().option("dataSource",this.options.dataSource);

If I replace igPivotView with igPivotGrid+igPivotDataSelector, everything is shown successfully.
Should I try something else to destroy the object?

Thank you, Maria