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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:28:44+00:00 2026-05-31T07:28:44+00:00

I am trying to add a jqGrid to a ASP.NET MVC3 partial view. This

  • 0

I am trying to add a jqGrid to a ASP.NET MVC3 partial view. This grid will be for the client side only as a shortcut calculator, they press a button and the grid generates based on some entered parameters. I can get the grid to show up and even addDataRow to it however the rows is not editable even though the fields are designated as such. I have tried it in IE9, Chrome, FF, Safari all the same outcome.

I pulled it out into a simple HTML page to see if it was related to the MVC partial view interfering but still no luck with the editable rows. The row is selectable but does not open up for editing.

I double checked to make sure I downloaded the full jqGrid package from here

Is a row added via addDataRow not editable by default? From all the documentation on the jqGrid Wiki I couldn’t find where it isn’t. I’ve read the inline editing wiki page several times and it seems like this should just work. What am I missing?

not editable http://bigpichost.com/files/noteditable_zm7rflo0.png

When I click on the row it selects but doesn’t open up for editing!

Here is the HTML page that I’m testing with:

<html>
   <head>
    <meta charset="utf-8">
     <title>Testing JQGrid</title>
        <link rel="stylesheet" href="../Content/themes/base/jquery.ui.all.css">
        <link href="Content/ui.jqgrid.css" rel="stylesheet" type="text/css" />
        <link href="Content/themes/redmond/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" />
    </head>

    <script src="Scripts/jquery-1.7.1.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui-1.8.18.custom.js" type="text/javascript"></script>
    <script src="Scripts/grid.locale-en.js" type="text/javascript"></script>
    <script src="Scripts/jquery.jqGrid.min.js" type="text/javascript"></script>
    <body>
        <table id=jqgRequests></table>

        <script type="text/javascript">
        $(document).ready(function () {
            $('#jqgRequests').jqGrid({
                // type of data
                datatype: 'local',
                // column names
                colNames: ['Save', 'Pct-Amt', 'Request', 'French'],
                // columns model
                colModel: [
                    { name: 'Save', index: 'Save', width: 55, sortable: false, editable: true, edittype: 'checkbox', formatter: 'checkbox', align: 'center' },
                    { name: 'PctAmt', index: 'PctAmt', width: 55, editable: false, align: 'right' },
                    { name: 'Request', index: 'Request', editable: true, align: 'left' },
                    { name: 'French', index: 'French', editable: true, align: 'left' }
                    ],
                //initial sorting column
                sortname: 'Pct-Amt',
                // initial sorting direction
                sortorder: 'asc',
                // we want to display total records count
                viewrecords: false,
                // grid width
                autowidth: true,
                // grid header
                caption: "Generated Requests"
            });  // end jqgrid
            var myFirstRow = { Save: "true", PctAmt: "0", Request: "Testing this", French: "Testing Oui" };
            $('#jqgRequests').addRowData("1", myFirstRow);
        });
        </script>
    </body>
</html>
  • 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-31T07:28:45+00:00Added an answer on May 31, 2026 at 7:28 am

    Something must switch the row into the editable state. If you want the row to be in edit mode after adding it, you just need to call editRow method:

    $("#jqgRequests").jqGrid('editRow', "1", false);
    

    If you want the row to switch into editable state when you select it, you should use onSelectRow callback:

    var previousSelectedRowId;
    
    $('#jqgRequests').jqGrid({
        ...
        onSelectRow: function(currentSelectedRowId) {
            if(currentSelectedRowId && currentSelectedRowId !== previousSelectedRowId) { 
                $('#jqgRequests').jqGrid('restoreRow', previousSelectedRowId); 
                previousSelectedRowId = currentSelectedRowId; 
            }
            $('#jqgRequests').jqGrid('editRow', currentSelectedRowId, false);
        },
        ...
    };
    

    If you want to add row, which is already in edit mode, you should use addRow method:

    $('#jqgRequests').jqGrid('addRow', { rowID: "1", initdata: myFirstRow });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

am trying to add jQuery Grid into my application(C# and Asp.net) using samples provided
I am trying to use Telerik MVC extension with jQGrid in a ASP.NET MVC
I have a asp.net MVC app and I'm trying to get the jqgrid 3.5
I'm trying to follow the demo from this link to add a jqGrid to
i'm trying to use jQuery multiselect plugin in a form editing jqGrid (add form).
I'm trying add a tab to my web page that looks like this: Using
I am trying to add a custom button to a JqGrid that implements a
I'm trying to get work this code: $(#list).jqGrid({ url: 'employers.php', datatype: 'json', mtype: 'POST',
I'm trying to add a Datepicker filter on a JQGrid toolbar. When I click
I am trying to add a button inside a jqGrid column and to assign

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.