I am using jqgrid with local data and I know how to edit a row, but I can’t figure out how to delete or insert a row.
For insert, where do I need to place addRowData? In some event handler?
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.
Use the following as an example :
where
invid,invdata,note,amount,taxandtotalare column names and#grid_idis the ID of your jqGrid to add data andwhere
rowidis the ID of the row you want to removeDocs for these methods are here
To trigger the adding / removing of rows is really your choice – you could have an add button and then prompt the user to enter the column data – then add the data to the table ….