How to add row after gridunload/gridReload and then appear row with empty data?
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.
To add new empty row in the grid after loading/reloading you can call
addRowDatainside ofloadComplete. Because we need get an unique id for the new row I suggest to use$.jgrid.randId()introduced in 4.0.0 version of jqGrid. So the code can looks like the followingIn the above example I selected additionally new added row and then started the editing of the row with respect of inline editing. There lines are just examples for some actions which you can additionally do with the new empty row.