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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
setIntervalyou 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.