Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jqGrid highlight the new added row

Is that possible to highlight the new added row in jqGrid. The highlight effect is something like this Highlight Effect

So, when the new row is added, the row will be highlighted, that will make clear for user which record is the new one.

Many thanks!

like image 345
Smallville Avatar asked May 31 '10 23:05

Smallville


People also ask

How do I highlight a row in jqGrid?

You can select or highlight rows based on data using the queryCellInfo event or can also select a row using an external button click event. The queryCellInfo is triggered every time a request is made to access particular cell information, element and data.

What is rowNum in jqGrid?

jqGrid exposes a property rowNum where you can set the number of rows to display for each page.


1 Answers

Yes, I have used the following to briefly highlight a newly-added row. It produces a nice effect to let the user know there is new data, and sounds just like what you are looking for:

jQuery("#" + rowId, "#myGrid").effect("highlight", {}, 2000);
like image 89
Justin Ethier Avatar answered Sep 22 '22 12:09

Justin Ethier