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 7613367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:08:16+00:00 2026-05-31T02:08:16+00:00

As you can see, I’m very new to this stuff. I have set up

  • 0

As you can see, I’m very new to this stuff.

I have set up a jqGrid, in loads fine. I’m trying to enable inline editing, and I’m not sure how to set things up. My receiving method is called, but I dont get any data in.

The grid setup:

    $(function () {
    var lastsel;
    $("#list").jqGrid({
        url: '@Url.Action("ExampleData", "Home")',
        datatype: 'json',
        mtype: 'GET',
        colNames: ['Namn', 'Adress', 'Stad'],
        colModel: [
          { name: 'Name', index: 'Name', width: 130, editable: true },
          { name: 'Address', index: 'Address', width: 180, editable: true },
          { name: 'City', index: 'City', width: 80, editabel: true },
        ],
        pager: '#pager',
        rowNum: 10,
        rowList: [10, 20, 30],
        sortname: 'Name',
        sortorder: 'desc',
        viewrecords: true,
        gridview: true,
        width: 700,
        onSelectRow: function (id) {
            if (id && id !== lastsel) {
                jQuery('#list').jqGrid('restoreRow', lastsel);
                jQuery('#list').jqGrid('editRow', id, true);
                lastsel = id;
            }
        },
        editurl: '@Url.Action("Incoming", "Home")',
        caption: 'Kontaktpersoner'
    });

    jQuery("#list").jqGrid('navGrid',"#prowed3",{edit:false,add:false,del:false});

And code in the Controller, which gets called. I suppose that is the editurl that should be used for getting data back…

    public ActionResult Incoming(Object stuff)
    {
        return null;
    }

Should’nt I get json back to the server, like the stuff I send into it when it’s loaded?

  • 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-31T02:08:17+00:00Added an answer on May 31, 2026 at 2:08 am

    The controller action Incoming don’t require to return any data back to the jqGrid because you use it only for editing and not to add new data. It’s important only that in case of error the action returns HTTP status code which corresponds to an error. In the case jqGrid can restore the previous results.

    In some situation you do should returns data from the server in case of successful editing too. For example, I use typically create non-nullable rowversion (earlier timestamp) column in every table of the database to manage optimistic concurrency. The value for the column will be automatically created on INSERT in the table and be automatically updated at the UPDATE of the data item. So I fill jqGrid with one additional hidden column which I get from the database together with the other data. On row editing the old value of the rowversion will be used to verify whether the data are changed from another place. In any way one need to send the new version of the rowversion to the jqGrid after any row editing. One can use aftersavefunc to read the server response and to update the value of the rowversion saved in jqGrid.

    The above explanation is only a rough schema of the possible implementation. The answer on your main question was: you don’t need return anything from the Incoming action. If you do need to send some information to jqGrid you can use aftersavefunc parameter of editRow to get the server response and to process it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can see there being a very simple answer to this but I will
we can see function generate() { this.a = 'hello'; } obj = new generate();
I can see several ways of doing this. Have a reference to a single
I can see some potential difficulties with this concept but the idea is: I
I can see that Collections.unmodifiableSet returns an unmodifiable view of the given set but
I can see that this is something that has been troubling a lot of
I can see the use of ob_start with the output_callback parameter set but I
I can see that there was a lot of issues with this error message
I can see there is a way to have a method in Java which
I can see when I want to use some applications they have some 'Ok,

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.