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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:59:31+00:00 2026-06-11T04:59:31+00:00

I just started using dojo and just started to play around with it. Basically

  • 0

I just started using dojo and just started to play around with it. Basically what I want do is that I have a table which has 2 columns A and B. The cells in Column B will either be locked or editable depending on the value of column A.

Is there a way to set the editable property at cell level and not on the column level as defined in the layout?

I tried using the formatter but can’t get it to work properly.

  • 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-11T04:59:33+00:00Added an answer on June 11, 2026 at 4:59 am

    You can override the grid function onCellDblClick – but this is version-specific code. If the dojo.version changes in your page, the grid Event.js may have other behaviors. The following snippet is taken from … /dojox/grid/_Event.js from version 1.7.2.

    If your editing is set to fire via doubleclicking a cell (default behavior), you may choose to simply ignore it with a well placed return in the following:

        var customOnEditActivate = function(e){
                // summary:
                //              Event fired when a cell is double-clicked.
                // e: Event
                //              Decorated event object contains reference to grid, cell, and rowIndex
                var event;
                if(this._click.length > 1 && has('ie')){
                        event = this._click[1];
                }else if(this._click.length > 1 && this._click[0].rowIndex != this._click[1].rowIndex){
                        event = this._click[0];
                }else{
                        event = e;
                }
    ////
    // entrypoints of interest: event.cell & event.cellNode(.innerHTML)
    // As example we could ignore editing mode if cell contains 'NON_EDITABLE'
    
    if(cell.innerHTML.match("NON_EDITABLE"))
         return;
    
    //
    ////
                this.focus.setFocusCell(event.cell, event.rowIndex);
                this.onRowClick(event);
                this.edit.setEditCell(event.cell, event.rowIndex);
                this.onRowDblClick(e);
        },
    

    So whilst initializing your grid, set the config parameter onCellDblClick to the above function:

    require(["dojox/grid/DataGrid"], function(DataGrid) {
      var grid = new DataGrid({
        onCellDblClick: customOnEditActivate
      });
    });
    

    or

    <div 
          data-dojo-type="dojox.grid.DataGrid" 
          data-dojo-props="onCellDblClick: customOnEditActivate"
    ></div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just started playing around with using Dojo in Zend Framework and things
Just started using Java (for Android, if that matters) and all I want is
I just started using the latest build of ffmpeg into which ffmpeg-mt has been
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I just started using SVN, and I have a cache directory that I don't
I just started using Coderush and found some stuff that I used to have
I just started using Eclipse but already I have a small problem. At first
I just started using/learning Python and have some questions. I have a text file
Just started using Blueprint CSS and now playing with the grids but have a
I just started using Solrnet in my application only to discover that using 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.