JqGrid updating grid on add
Posted
by CSharpAtl
on Stack Overflow
See other posts from Stack Overflow
or by CSharpAtl
Published on 2010-02-04T03:12:39Z
Indexed on
2010/03/17
15:01 UTC
Read the original article
Hit count: 334
Scenario:
I have three columns in my grid but only one is editable, the other two are filled in on the server side. I am using the built in add functionality of jqGrid and NOT refreshing the grid on successfully add. I would like to have the row added to the grid, like it does automatically, but would like to add it myself because it only adds the one column that is marked 'editable'. I cannot seem to find a way to block the row from being automatically added to the grid, or a way to override the built in add functionality in the grid. My idea was to add the row myself because I will have received back the full row of data back on my submit.
Questions:
Is there a way to stop the grid from automatically adding the row when I do not want a grid refresh, so that I can manually add all the data for the row?
Is it possible to use the built in add button and override the onClick, without digging and and directly figuring out what jqGrid calls the button?
Any better ideas on how to accomplish getting the row added to the grid from the server side without doing it all manually...ie. create my own add button, and popup a dialog and handle all the submit functionality?
EDIT
What would help is if I could stop the grid from auto adding the row...I can deal with doing it myself.
© Stack Overflow or respective owner