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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:40:05+00:00 2026-05-24T10:40:05+00:00

Is is correct that jqGrid doesn’t currently contain an inline add. I’m trying to

  • 0

Is is correct that jqGrid doesn’t currently contain an inline add.

I’m trying to get this working from:

http://www.trirand.net/forum/default.aspx?g=posts&t=212

There are a couple of examples there but they’re not working quite as I would like.

Anybody know of a good example

  • 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-24T10:40:06+00:00Added an answer on May 24, 2026 at 10:40 am

    Try this:

    pager: '#id_pager',
    sortname: 'id',
    viewrecords: true,
    sortorder: "desc",
    caption:"...",
    cellEdit: true,
    editurl:"....",
    
    beforeSelectRow: function (id) {
        if (id !== lastSel) {
            jQuery("#id_grid").jqGrid('restoreRow', lastSel);
            lastSel = id;
        }
        return true;
    },
    onSelectRow: function (id, iRow, iCol, e) {
        jQuery("#id_grid").jqGrid('editRow', id, true, function(){
            jQuery("input, select").focus();
        });
        return;
    }
    

    And add a button with navButtonAdd:

    .navButtonAdd("#id_pager", {
        caption: "",
        buttonicon: "",
        onClickButton: function () {
            var datarow = { id: "", name: "", address: "" };
            var su = jQuery("#id_grid").addRowData("X", datarow, "first");
            if (su) { jQuery("#id_grid").setSelection('X'); }
        },
        position: "last"
    });
    

    Don’t forget for add editable: true, at every colModel.
    I hope can help your problem. Thanks

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

Sidebar

Related Questions

This is a question related to C# MVC2 Jqgrid - what is the correct
Can someone help me to correct that? match 'graphs/(:id(/:action))' => 'graphs#(:action)', :via => [:get,
I need to show data in jqGrid from a database table that stores the
I am trying to populate a jqGrid with data from a web service. I
Is it correct that this code $('<param><div></div></param>') produces this output? [<param>, <div></div>] whereas with
Is it correct that the reveal applescript command is broken with iTunes 9? Works:
I'm new to Symfony. Is my understanding correct that the User class is actually
(1). When using C++ template, is it correct that the compiler (e.g. g++) will
My Visual Studio 2008 debugger is showing integers as hexadecimals, how to correct that?
Like in: u'Hello' My guess is that it indicates "Unicode", is that correct? If

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.