开发者

how do i highlight jqgrid row when new record added in a grid

I have a flagger table in which manually records inserted. I want to reload jqgrid 开发者_StackOverflow社区after every 2 min and when new records added then wants to highlylight it. How to do this?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜