views:

64

answers:

1

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

+2  A: 

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
Thank you so much - this is exactly what i was looking for. You're a life saver!
Byron Cobb