Forum
Topic RSS
23:39
26/08/2010
OfflineI have the navgrid edit pager working to select a row and display the Edit Dialog box. It also goes out to my Servlet and executes correctly. In my servlet, I am checking for duplicate updated values and throwing an exception. The exception displays inside the Edit box and at this point the "Submit" and "Cancel" buttons dissappear. This prevents me from canceling the operation, so my only option is to Close the Dialog box by clicking the "X" in the corner.
However, when I select another row to edit, the dialog box re-appears without a "Submit" or "Cancel" button. Here is my Grid Definition:
$("#driverXRefTable").jqGrid({
datatype:"local",
repeatitems: false,
colNames:['Driver Name', 'SV Id', 'Nascar Id', '', '', ''],
colModel:[
{name: 'driverName', index:'driverName', editable:false, editoptions:{readonly:true,size:250}, width: 250, align: 'right'},
{name: 'driverSVID', index: 'driverSVID', editable: true, editoptions:{size:25}, width: 150, align: 'right'},
{name: 'driverNascarId', index: 'driverNascarId',editable: true, editoptions:{size:25}, width: 150, align: 'right'},
{name: 'oldDriverSVID', index: 'oldDriverSVID', hidden: true, editable: true, editrules: {edithidden: false}},
{name: 'oldDriverNascarId', index: 'oldDriverNascarId', hidden: true, editable: true, editrules: {edithidden: false}},
{name: 'testDriverName', index: 'testDriverName', hidden:true, editable: true, editrules: {edithidden: false}}
],
multiselect: false,
rowNum:10,
rowList:[10,20,30],
pager: '#driverXRefPgr',
editurl: "/racemonitor?cmd=updateDriverXref",
viewrecords: true,
caption: "Driver Xref",
width: 600,
height: "100%"
});
$("#driverXRefTable").jqGrid('navGrid', '#driverXRefPgr',
{}, //options
{height:120,
editCaption: "Edit Driver XRef",
reloadAfterSubmit:false,
closeAfterEdit: true
}, // edit options
{height:120,reloadAfterSubmit:false}, // add options
{reloadAfterSubmit:false}, // del options
{} // search options
);
Is there something more I should do after this to clear out after this after getting a return error?
Stephen McConnellnnn"Boredom is a personal defect."n -- Lamar Stephens
Most Users Ever Online: 994
Currently Online:
33 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home