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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:56:43+00:00 2026-06-07T01:56:43+00:00

In my Grid , when I click on the Action button (the delete and

  • 0

In my Grid, when I click on the Action button (the delete and edit button shown in the code below), I need to pop open a window without alerting the user with a Alert message;

In the following code I am using a HANDLER handler: buttonClicked and trying to access the row value i clicked from a different function below

buttonClicked :function (){...}
  1. I don’t know how to do this, can someone please help me ?

  2. Can i access the row I clicked and display its name from the Controller class ?


CODE SNIPET

Ext.define('CountryAppTest.view.user.Gridview', {
    extend: 'Ext.grid.Panel',
    initComponent: function() {
        this.store = 'store';
        this.columns = [{
            xtype: 'ac',
            items: [{
                icon: 'lib/extjs/examples/restful/images/delete.png',
                handler: buttonClicked
            }]
        }, {
            text: "username",
            dataIndex: 'username'
        }];
        this.viewConfig = {
            forceFit: true
        };
        this.callParent(arguments);
    },
    buttonClicked: function(grid, rowIndex, colIndex) {
        var rec = grid.getStore().getAt(rowIndex);
        Ext.Msg.alert("Info", "name " + rec.get('username'));
    }
});
  • 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-07T01:56:45+00:00Added an answer on June 7, 2026 at 1:56 am

    Add the parameters (grid, rowIndex, colIndex) into your buttonClicked declaration.

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

Sidebar

Related Questions

jqGrid delete action button is used to delete row. This button click calls Edit
When I place Button in grid and add to is's click action: this.Close(); It's
After I click update in the grid view, the code works successfully. But when
I have editable grid view, If I click on edit in any row say
I am using this code to display a grid $('#table1 tr').bind('click', shows); function shows()
I am using ASP.NET MVC architecture.I have a telerik window on a button click,
Inline editing is started using edit formatter action button. If clicked in other row,
Edit formatter action button is placed to jqgrid column: colModel: [{fixed:true,label: change ,name:_actions,width:($.browser.webkit ==
jqGrid inline edit starts on single in click by onSelectRow event below. Save and
Say I have a grid, I click an object and it displays in a

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.