Forum

July 12th, 2025
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Edit Dialog Buttons Dissappear after Error
31/08/2010
23:39
Avatar
scawa1952
Villa Rica, Georgia
Member
Members
Forum Posts: 11
Member Since:
26/08/2010
sp_UserOfflineSmall Offline

I 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

31/08/2010
23:40
Avatar
scawa1952
Villa Rica, Georgia
Member
Members
Forum Posts: 11
Member Since:
26/08/2010
sp_UserOfflineSmall Offline

Oh well......

Figured it out... rather quickly.....

I needed to add

"recreateForm: true," 

in the Edit Options........

Sorry.  Maybe this post will help someone else.

Stephen McConnellnnn"Boredom is a personal defect."n -- Lamar Stephens

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information