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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:35:08+00:00 2026-05-30T19:35:08+00:00

I have created a grid with extjs 4. The selection.CheckboxModel is implemented to. This

  • 0

I have created a grid with extjs 4. The selection.CheckboxModel is implemented to. This means that the row is selected/deselected wherever you click on the particular row. Now i want to disable this selection on the last column since it contains custom buttons. (I don’t want to select the row if a button is clicked).

Any idea’s how to do this?

Many thanks in advance!

  • 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-30T19:35:09+00:00Added an answer on May 30, 2026 at 7:35 pm

    This is actually a tricky little problem, if only because Sencha documentation is lacking.

    The CheckboxModel does indeed have a beforeselect event inherited from Ext.selection.RowModel. However, there’s no easy way to get the column index because frankly, that’s the point of the RowModel.

    However, there’s an undocumented event in Ext.view.Table (which your grid will inherit) called beforecellmousedown. Here’s the event parameters:

    1. view: The view of your grid
    2. cell: The cell that was clicked
    3. cellIndex: Index of the cell
    4. record: The store record associated with the cell
    5. row: The row of the cell
    6. rowIndex: Index of the row
    7. eOpts: Standard event option event

    So you would probably try something like this:

    viewConfig: {
        listeners: {
            beforecellmousedown: function(view, cell, cellIdx, record, row, rowIdx, eOpts){
                if(cellIdx === indexOfLastColumnInGrid){
                    return false;
                }
            }
        }
    }
    

    Both the cell and row indexes are zero-based.

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

Sidebar

Related Questions

I have a problem. I use extjs grid . This grid will be refreshed
I have created a grid view that displays six cells of content. In each
I have created a grid and want to access it when I click on
I have the following extjs code that createa 2 tabs and a grid. How
I have created a grid of thumbnail pictures, that when hovered over, the picture
I have created a Silverlight User Control. The markup is: <StackPanel Grid.Row=4 Grid.Column=0 Orientation=Horizontal
Hi I have created a user message page with this plugin. The grid will
I have a problem with a Ext.Grid.EditorGridPanel, I am currently using ExtJS 2.3.0, that
Based on the answers from this question , I have created a grid from
I have created a custom control that simply draws a grid of squares on

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.