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

  • Home
  • SEARCH
  • 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 7489455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:15:01+00:00 2026-05-29T15:15:01+00:00

how to make the cell not editable on double click? cells are editable on

  • 0

how to make the cell not editable on double click?
cells are editable on single click.

i have done cell edit enable using following code:

 jQuery("#tree").jqGrid({
                url:'json/jsonSamplePots.json',
                datatype: "json",
                mtype:'GET',
                colNames: ["Task id", "Task no.", "Task name", "Priority", "Start", "End", "Effort(hrs)", "Actual start", "Actual end", "Actual effort(hrs)", "Baseline start", "Baseline end", "Baseline effort(hrs)", "Task type", "Link", "Resources", "Tag"],
                colModel: [
                    {name:'id',width: 30, editable:false, align:"right",sortable:false, hidden: true, key: true},
                    {name:'no',width:80, editable:false, align:"left", sortable:true, sorttype:"int"},
                    {name:'name', width:150, editable:true, sortable:true, sorttype:"text"},
                    {name:'priority', width:80, editable:true, align:"right", sortable:true, sorttype:"int"},
                    {name:'sDate', width:80, editable:true, align:"right", sortable:true, sorttype:"date"},
                    {name:'eDate', width:80, editable:true, align:"right", sortable:true, sorttype:"date"},
                    {name:'effort', width:80, editable:true, align:"right", sortable:true, sorttype:"int"},
                    {name:'asDate', width:80, editable:true, align:"right", sortable:true, sorttype:"date"},
                    {name:'aeDate', width:80, editable:true, align:"right", sortable:true, sorttype:"date"},
                    {name:'aeffort', width:80, editable:true, align:"right", sortable:true, sorttype:"int"},
                    {name:'bsDate', width:80, editable:true, align:"right", sortable:true, sorttype:"date"},
                    {name:'beDate', width:80, editable:true, align:"right", sortable:true, sorttype:"date"},
                    {name:'beffort', width:80, editable:true, align:"right", sortable:true, sorttype:"int"},
                    {name:'type', width:120, editable:true, align:"left", sortable:true, sorttype:"text"},
                    {name:'link', width:80, editable:true, align:"left", sortable:true, sorttype:"text"},
                    {name:'resources', width:300, editable:true, align:"left", sortable:true, sorttype:"int"},
                    {name:'ref', width:80, editable:true, align:"right", sortable:true, sorttype:"int"},
                ],
                rowNum:10,
                rowList:[10,20,30],
                pager: '#pcolch',
                sortname: 'no',
                treeGridModel:'adjacency',
                autowidth:false,
                sortorder: 'desc',
                caption:"<a href="#">Task</a>
                toolbar:[true,"top"],
                treeGrid: true,
                cellEdit: true,
                sortable: true,
                shrinkToFit :true, 
                //viewrecords: true, 
                height:'auto',
                ExpandColumn:'name',
                cellsubmit : 'clientArray',
  • 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-29T15:15:01+00:00Added an answer on May 29, 2026 at 3:15 pm

    I suggest to use row editing instead of cellediting. I have been struggling with it for a while but cell editing is not as much flexible that row editing is. With row editing you can reach to exact the same goal as cell editing.

    You could use the onCellSelect event to enable ‘cell editing’ (row editing) and use the event parameter to catch if the event is a double click event. I used something similar in my own project:

    'onCellSelect' : function(rowId, iCol, cellcontent, e) {
        if(rowId && rowId !== lastsel && e.type != 'onDblClick') {
        $('#resultsgrid').jqGrid(
            'saveRow',
            lastsel,
            null,
            'clientArray',
            null,
            saveEditRow
        );
    
        $('#resultsgrid').jqGrid('restoreRow', lastsel);
        $('#resultsgrid').jqGrid('editRow', rowId, false);
    
        lastsel = rowId;
        }
    }
    

    Note above is just an example, you proberly can’t copy/paste it to use it in your own project. You should test it if it works for you.

    Not that the onCellSelect does not work in the celledit mode.

    Hope it helps you!

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

Sidebar

Related Questions

how can I make one single cell editable out of a not editable column?
Is there a way to make a DataGridView have no cell selected? I notice
Make a new AS3 Document in Flash, paste in the following code and run
In my PyGTK application I currently use 'editable' to make cells editable. But since
I have a table (a calendar, notably). I want to make the calendar not
I have been trying to use Jeditable to make my html table editable. However
How to make a datagrid view cell not selected at form load for this
I have code that will automatically adjust the height of a cell, so that
Is it possible to navigate an NSTableView's editable cell around the NSTableView using arrow
What CSS should I use to make a cell's border appear even if the

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.