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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:36:47+00:00 2026-06-11T15:36:47+00:00

I had a jqGrid working with inline editing with a dedicated script just for

  • 0

I had a jqGrid working with inline editing with a dedicated script just for this grid. I am trying to organize and consolidate the server scripts, so now I wish to use a new script for inline editing on the server. To use this new script I need to pass the script an extra POST variable when editing inline. I can’t figure out how to POST additional data to server while editing inline.

With form editing I use the editData attribute to include addition POST data with the edit form. I have read in the jqGrid docs that I may be able to pass addition POST data with the extraparams parameter. I just can’t seem to get the syntax right.

This is what I have, and it is not working:

$('#list').editRow(
        id,
        true,
        function(){
            $('input[name=customer]').autocomplete({source:customerlist});
            today = new Date();
            $('input[name=date]').val(today.getFullYear() + '-' + (today.getMonth()+1) + '-' + today.getDate());
        },
        extraparams={
            'arg1':'daily_folding_reports'
        }
    );

Where list is the ID of the grid. The function to add autocomplete is firing correctly on EDIT, but I am not incorporating the extraparams correctly. What is the correct syntax for this?

Thanks!

  • 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-06-11T15:36:48+00:00Added an answer on June 11, 2026 at 3:36 pm

    If you use the position form of editRow then the call should be like the following

    $("#list").jqGrid('editRow', id,
        true,
        function () {
            $('input[name=customer]').autocomplete({source:customerlist});
            today = new Date();
            $('input[name=date]').val(today.getFullYear() + '-' +
                (today.getMonth()+1) + '-' + today.getDate());
        },
        null,
        null,
        { arg1: 'daily_folding_reports' });
    

    I personally prefer another for of the editRow usage which can reduce the number of null parameters:

    $("#list").jqGrid('editRow', id, {
        keys: true,
        oneditfunc: function () {
            $('input[name=customer]').autocomplete({source:customerlist});
            today = new Date();
            $('input[name=date]').val(today.getFullYear() + '-' +
                (today.getMonth()+1) + '-' + today.getDate());
        },
        extraparam: { arg1: 'daily_folding_reports' }
    });
    

    I find the form more readable (see the answer for example).

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

Sidebar

Related Questions

I just started working with jqGrid this week. I'm attempting to make a generic
I had these working great as navgrid settings like follows: this.Grid.navGrid('#' + this.PagerId, {},
Had this working; at one stage. The problem is the following text is now
I am working on jqGrid.I had a problem in the navigator rowList. my data
I've been trying to get the Grid as Subgrid feature working and have not
Had received a module from CCAVENUE and it was working fine with Magento 1.6.2...
Had a page that was working fine. Only change I made was to add
Had no luck getting this to work via what I found on google.
Had a search around and can't seem to find any options to do this,
Had a nice PHP/HTML/JS prototype working on my personal Linode, then tried to throw

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.