2

I have looked around and have yet to find a decent answer.

I wish to add a new row into my grid from my own custom button, without using their add buttom or edit forms.

Something like:

$("#grid").jqGrid('insert',{"id","col1","col2"});

I want to be able to programatically insert new rows and not have to use their form.

Any help would be greatly appreciated.

Regards, Byron

Bob
  • 3,074
  • 11
  • 43
  • 62

1 Answers1

12

Why do you not use addRowData method (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods)? Do you want do something more as to add the data?

Oleg
  • 220,925
  • 34
  • 403
  • 798