gridIDMap = $( "#" + gridID ).data( 'igGrid' )
gridIDMap.destroy();
this used to work, on the latest update I get
Error: Syntax error, unrecognized expression: #myDiv0_table_ROW#
Hello seang,
It seems that there is a syntax error in your code. What is the value of your gridID variable? Do you have semi-colon after your first line? Have you tried to call the destroy method like this: $("#" + gridID ).igGrid('destroy');
gridID= ui.owner.id(); from the dataRendered: function it give the value #myDiv0_table //this looks wrong to me? Did something change here?
I tried $( "#myDiv0_table" ).igGrid( 'destroy' ); but same error.
I have used this since 2012
dataRendered: function ( evt, ui ) {//init after grid is ready var gridID = ui.owner.id(); INSTANCE.gridID = gridID; INSTANCE.gridIDMap = $( "#" + gridID ).data( 'igGrid' ) INSTANCE.igGridSelection = $( "#" + gridID ).data( 'igGridSelection' ); INSTANCE.igGridSorting = $( "#" + gridID ).data( 'igGridSorting' ); INSTANCE.igGridUpdating = $( "#" + gridID ).data( 'igGridUpdating' ); INSTANCE.igGridResizing = $( "#" + gridID ).data( 'igGridResizing' );
}
this I have used since 2012 as well
dataSheet.prototype.close = function ( width, height ) { _iUI.windows[this.ID].chartGraph.destroy(); this.gridIDMap.destroy(); };
the error came from the last update, so its something the new update is doing different.