Harke
Harke

Reputation: 1289

jqgrid .clearGridData() not working in firefox

I am using jqgrid 3.6.4. The following is a snippet of my code:

 jQuery("#lookupTable").clearGridData(true)
                          .addRowData('id',objArray5);

The problem that I am facing in firefox and chrome and not in IE, is that the grid is not getting cleared. Hence, every time the above mentioned code is called the data is being appended to the grid (whose id is 'lookupTable').

Could someone tell me why is the grid not getting cleared of its data?

Upvotes: 1

Views: 5037

Answers (1)

Kavitha K Gowd
Kavitha K Gowd

Reputation: 527

I remember facing the same issue. I resolved it by reloading grid after clear and then adding the new data. This issue exists even in the recent 4.1.2v also.

   jQuery("#lookupTable").clearGridData(true).trigger("reloadGrid")
.addRowData('id',objArray5);

I hope this will solve the issue.

Upvotes: 2

Related Questions