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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T21:57:13+00:00 2026-05-14T21:57:13+00:00

Is it possible to disable editing in jqGrid for certain cells in a column

  • 0

Is it possible to disable editing in jqGrid for certain cells in a column that is marked as editable?

From what I’ve seen, the only options are “all cells are editable” or “no cells are editable”.
Is there a way to work around this?

  • 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-14T21:57:13+00:00Added an answer on May 14, 2026 at 9:57 pm

    I’ll recommend you to use so named “Inline Editing” for row editing. The most advantage of this method, that it is very intuitive and the user. You can see how it works on the demo page http://trirand.com/blog/jqgrid/jqgrid.html. Choose on this demo “Row Editing” and then “Using Events” or “Input types” on the left tree part. With this method you can implement any custom verification whether the selected row should be allowed to be edited or not inside of the event handle onSelectRow or ondblClickRow. If you allow editing, then you call editRow method of jqGrid. This method creates input controls for all editable columns and the user can modify the row values in a natural way. The modifications will be saved if the user press “enter” key or canceled on “esc” key.

    I personally prefer to implement calling of editRow method inside of ondblClickRow event handler. So the user can continue selecting of rows like usual and can use double click for the row editing. The pseudo code will look like folowing:

    var lastSel = -1;
    var isRowEditable = function (id) {
        // implement your criteria here 
        return true;
    };
    var grid = jQuery('#list').jqGrid({
        // ...
        ondblClickRow: function(id, ri, ci) {
            if (isRowEditable(id)) {
                // edit the row and save it on press "enter" key
                grid.jqGrid('editRow',id,true);
            }
        },
        onSelectRow: function(id) {
            if (id && id !== lastSel) {
                // cancel editing of the previous selected row if it was in editing state.
                // jqGrid hold intern savedRow array inside of jqGrid object,
                // so it is safe to call restoreRow method with any id parameter
                // if jqGrid not in editing state
                grid.jqGrid('restoreRow',lastSel);
                lastSel = id;
            }
        },
        pager: '#pager'
    }).jqGrid('navGrid','#pager',{edit:false});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to disable the options dialog box for a .net console application?
Is it possible to disable future date from today? Let say today is 23/10/2010,
Is it possible to disable the Select all button in the upper left corner
Possible Duplicate: Disable back button in android in my app to from one activity
I'm using JQTransform to style all form elements. Is it possible to disable the
Is it possible to disable a trigger for a batch of commands and then
Is it possible to disable AJAX without disabling JavaScript completely?
Is it possible, using actionscript 3 to disable the right click menu? Any help
Possible Duplicate: .NET - What’s the best way to implement a catch all exceptions
Possible Duplicate: Disable browser ‘Save Password’ functionality Is there a standard way to prevent

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.