2

I am using jqGrid and it's working fine.

I have a scenario where I have to add a blank row in jqGgrid instead of a popup to add the row.

How can I do it?

Kris van der Mast
  • 16,343
  • 8
  • 39
  • 61
Shivi
  • 1,075
  • 9
  • 24
  • 42
  • i didnt understand wat you mean to say.. – Shivi Sep 20 '10 at 12:51
  • please help...i m new to stackoverflow...... – Shivi Sep 20 '10 at 12:53
  • how can i accept the answer...is there ia ny buuton or link to accept the answer – Shivi Sep 20 '10 at 13:11
  • @Sandy: If the problem is solved you can consider to accept the question (see http://meta.stackexchange.com/questions/5234 and http://stackoverflow.com/faq#howtoask). If you will read some FAQs (see http://meta.stackexchange.com/questions/7931) you will understand and use stackoverflow more effective for you. – Oleg Sep 20 '10 at 13:11

2 Answers2

0

from the jqgrid demo page, i see this:

jQuery("#list7").jqGrid('setGridParam',{rowNum:15}).trigger("reloadGrid");

see: http://trirand.com/blog/jqgrid/jqgrid.html manipulating -> set methods

mkoryak
  • 57,086
  • 61
  • 201
  • 257
  • But i dont want to open the dialog box to add the row..insted i want to add the empty row to the jgrod and then fill the data to the empty row – Shivi Sep 20 '10 at 13:14
0

You can use for example addRowData. Look at jQGrid, how to add a new row inside the grid, not via a modal?.

Probably the answer Spreadsheet-like inline editing in jqGrid and the demo http://www.ok-soft-gmbh.com/jqGrid/ClientsideEditing5.htm could help you also.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798