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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:54:57+00:00 2026-06-06T05:54:57+00:00

I am using jqGrid v3.8.1 and having trouble passing extra parameters with the predefined

  • 0

I am using jqGrid v3.8.1 and having trouble passing extra parameters with the predefined formatter ‘actions’. Basically I want to pass two parameters along with the edited fields while editing as well as deleting. As per the documentation, extraparam can be used to post additional parameters to the server. I’ve tried everything I could and researched as much as I could but, I’m still not able to get this to work. I’ve referred the following:

Link 1
Link 2

and others on stackoverflow and elsewhere. I’m not sure what is going wrong.

Following is my code. Please help me out.

jQuery("#configGrid").jqGrid({
    mtype: "post",
    url: '/Controller/Action',
    datatype: "json",
    colNames: ['Location', 'S_No', 'S_C', 'D_No', 'D_C', 'B_No', 'B_C', 'G_No', 'GP_P', 'IP', 'OA', 'NA', 'Months', 'Edit'],
    colModel: [{
        name: 'name',
        index: 'name',
        width: 90
    }, {
        name: 's_no',
        index: 's_no',
        width: 90,
        align: "center",
        editable: false
    }, {
        name: 's_c',
        index: 's_c',
        width: 90,
        align: "center",
        editable: true
    }, {
        name: 'd_no',
        index: 'd_no',
        width: 90,
        align: "center",
        editable: false
    }, {
        name: 'd_c',
        index: 'd_c',
        width: 90,
        align: "center",
        editable: true
    }, {
        name: 'b_no',
        index: 'b_no',
        width: 90,
        align: "center",
        editable: false
    }, {
        name: 'b_c',
        index: 'b_c',
        width: 90,
        align: "center",
        editable: true
    }, {
        name: 'g_no',
        index: 'g_no',
        width: 100,
        align: "center",
        editable: false
    }, {
        name: 'g_c',
        index: 'g_c',
        width: 100,
        align: "center",
        editable: true
    }, {
        name: 'TIP',
        index: 'TIP',
        width: 80,
        align: "right",
        editable: true
    }, {
        name: 'OA',
        index: 'OA',
        width: 80,
        align: "center",
        editable: true
    }, {
        name: 'NA',
        index: 'NA',
        width: 80,
        align: "center",
        editable: true
    }, {
        name: 'Months',
        index: 'Months',
        width: 150,
        align: "center",
        sortable: false,
        editable: true
    }, {
        name: 'myac',
        width: 50,
        align: "center",
        fixed: true,
        sortable: false,
        resize: false,
        formatter: 'actions',
        formatoptions: {
            keys: true,
            extraparam: {
                slot: "1",
                installment: "1"
            }
        }
    }],
    rowNum: 10,
    rownumbers: true,
    autowidth: true,
    rowList: [10, 20, 30],
    postData: {
        level: function () {
            if (p_level == undefined || p_level == null) {
                return 'S';
            } else {
                return p_level;
            }
        },
        location: function () {
            return p_location;
        },
        ownLower: function () {
            return flagOwnLower;
        },
        slot: function () {
            return $("#ddlSlot").val();
        },
        installment: function () {
            return $("#ddlInstallment").val();
        }
    },
    loadError: function (xhr, status, error) {
        $('#ErrorMessage').html(xhr.responseText);
        $('#ui-widget').show();
        $("#ErrorMessage").stop().show('slow');
    },
    //loadonce: true,
    pager: '#configPager',
    sortname: 'invdate',
    viewrecords: true,
    sortorder: "desc",
    //jsonReader: { repeatitems: false },
    caption: "caption",
    height: '100%',
    editurl: '/Controller/UpdateAction/' + Math.random(),
    multiselect: true,
    loadComplete: function () {
        $('#ErrorMessage').html("");
        $('#ui-widget').hide();
        $("#ErrorMessage").stop().hide('slow');

        gridLoaded = true;
    },
    onSelectRow: function (rowId) {

        //tried this but it is not working
        //jQuery("#frmac").editRow(rowId, true, null, null, '/Action/Controller/' + Math.random(), { slot: $("#ddlSlot").val(), installment: $("#ddlInstallment").val() });
    }
});
  • 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-06T05:54:58+00:00Added an answer on June 6, 2026 at 5:54 am

    The change log mentions that predefined formatter ‘actions’ was introduced in v3.8.2. Even though I’m using v3.8.1 it allowed me to use the ‘actions’ formatter and few of it’s properties like keys, editbutton and deletebutton (I didn’t try the others) but, was not supporting extraparam, onEdit, onSearch. I upgraded to v3.8.2 and my issue was resolved.

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

Sidebar

Related Questions

I am using a jqgrid but am having trouble positioning to a specific page.
I am having trouble constructing a jqGrid TreeGrid using local data. This method works
I am using the jQuery JQGrid plug-in, version 3.8.2 and am having trouble trying
I'm having trouble using the jQgrid, when I initialize the jqgrid with json datatype
I'm having an issue in IE 6 and 7 when using jqGrid (v3.6.4) and
I am using jqGrid and want to know the best solution to implement it.
I'm trying to use inline editing in jqGrid and I'm having trouble with the
I'm using jqGrid and am having an issue with one cells data. The contents
I'm having a problem with JQGrid using ASP.NET MVC. I'm trying to follow this
I am having an issue with the using jqGrid with JSON data returned from

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.