Reputation: 182
I have a flagger table in which manually records inserted. I want to reload jqgrid after every 2 min and when new records added then wants to highlylight it. How to do this?
Upvotes: 1
Views: 1135
Reputation: 222017
Your question consist from two parts: 1) reloading the grid every 2 min and 2) highlighting of the new added record.
For grid reloading you can easy implement with respect of setInterval JavaScript function. Here you can find an code example. If you use editing you should not refresh the grid during a row is in editing. Simple setting global boolean variable at the beginning of editing and clearing at the end of editing can help to solve the problem. Inside of function used in setInterval
you can test the global variable and skip the grid reloading if the grid is in editing.
To highlight the row you can use jQuery UI effect with "highlight" parameter. See here.
Upvotes: 2