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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:59:13+00:00 2026-06-10T10:59:13+00:00

I want to disable one specific row in datagrid in following manner: 1) Highlight

  • 0

I want to disable one specific row in datagrid in following manner:

1) Highlight one row with a different color

2) Disable checkbox/radio button selection of that row

3) Disable inline editing of cells present in that row but allow inline editing for other rows.

Pls. help if you have any ideas.

  • 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-10T10:59:15+00:00Added an answer on June 10, 2026 at 10:59 am

    You can use a combination of the following functions to extract stuff

    // as example, one of youre items uses identifier:'id' and 'id:10'
    var identifier = '10'; 
    var item = store._arrayOfTopLevelItems[10]; // you probably have this allready
    var index = grid.getItemIndex(item);   // find which index it has in grid
    var rowNode = grid.getRowNode(index);  // find a DOM element at that index
    

    You will have the <div> as rowNode, it contains a table with cells (as many as you got columns). Set its background-color

    The checkbox thing, you will prly know which cell-index it has

    var cellNode = dojo.query('td[idx='+cellIndex+']', rowNode)[0];
    // with cellType Bool, td contains an input
    var checkbox = cellNode.firstChild;
    

    Editing is another store really.. works in focus handlers. To override it, you must keep like an array of rows which you dont want editable (allthough the cell.editable == true).

    function inarray(arr, testVal) {
        return dojo.some(arr, function(val) { return val == testVal }).length > 0
    }
    grid.setNonEditable = function (rowIndex) {
        if(! inarray(this.nonEditable,rowIndex) ) 
               this.nonEditable.push(rowIndex);
    }
    grid.setEditable = function (rowIndex) {
        this.nonEditable = dojo.filter(this.nonEditable, function(val) { return val != rowIndex; });
    }
    var originalApply = grid.onApplyEdit
    grid.onApplyEdit = function(inValue, inRowIndex) {
       if(! inarray(this.nonEditable,inRowIndex) )
            originalApply.apply(this, arguments);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to disable an input Box AND a button when a checkbox is
I have three buttons, sharing same background image, i want to disable button one
I want to disable some specific feature that one my plugins does to the
I want to disable the left bar button when my webview is loading can
I want to disable a specific wifi connection which is entered by the user.
I want to disable a specific element of a selectable list. I am able
I want to disable all unchecked checkboxes of a class when one of the
I am aware of the following question: I want to disable the shadow effect
I am using a wordpress theme with two sidebars. I want to disable one
Here is my code, I have two checkboxes and want to keep one disabled

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.