Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 300019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:52:34+00:00 2026-05-12T06:52:34+00:00

I am working on my first implementation of a jqGrid . I am using

  • 0

I am working on my first implementation of a jqGrid. I am using the standard add/edit buttons that appear in the navGrid but am having problems identifying how process the server response when I click Submit in the edit/add forms.

.navGrid("#product-codes-footer",{edit:true,add:true,del:false},
{afterShowForm:afterShowEdit}, {afterShowForm:afterShowAdd} );

Is there a standard callback or event parameter I am missing somewhere regarding this? Is there a way to define how saveRow is called or is there a default success/error callback method I can implement?

Any direction would be much appreciated!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:52:34+00:00Added an answer on May 12, 2026 at 6:52 am

    There appears to be a couple event parameters that I failed to completely read and comprehend…

    API –> http://www.trirand.com/jqgridwiki/doku.php?id=wiki:form_editing#editgridrow

    using the event parameters for afterSubmit and afterComplete allow me to process the server response and update the form.

    –Dan

    EDIT
    Here is an example of the code used…

    .navGrid(
            "#product-codes-footer",
            {edit:true,add:true,del:false}, 
            {
                afterShowForm:afterShowEdit, 
                afterSubmit:processAddEdit,
                beforeSubmit:validateData,
                closeAfterAdd: true,
                closeAfterEdit: true
            }, 
            {
                afterShowForm:afterShowAdd, 
                afterSubmit:processAddEdit,
                beforeSubmit:validateData,
                closeAfterAdd: true,
                closeAfterEdit: true
            } 
    );
    function afterShowEdit(formId) {
    
                //do stuff after the form is rendered
            }
            function afterShowAdd(formId) {
    
                //do stuff after the form is rendered
            }
            function processAddEdit(response, postdata) {
                var success = true;
                var message = ""
                var json = eval('(' + response.responseText + ')');
                if(json.errors) {
                    success = false;
                    for(i=0; i < json.errors.length; i++) {
                        message += json.errors[i] + '<br/>';
                    }
                }
                var new_id = "1";
                return [success,message,new_id];
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Entity Framework Code First and whilst I have working code, I'm having
I working on my first ASP.net MVC project and and i got some problems
I'm working on a first symfony project, i am using the sfWidgetFormTextareaTinyMCE widget for
I am working on a basic graph implementation(Adj List based) in C so that
I currently working on a application that use Entity Framework 4.1 (code first) and
I wrote an implementation of vector, which compiles but is not working properly according
First the problem: I'm working on the application that uses multiple FragmentLists within a
I have a working implementation of NDK library and corresponding Java-class. But I am
Everything seems to be working fine with my implementation of Facebooker with Authlogic (using
I am new to wpf and i am working on first application i have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.