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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:59:20+00:00 2026-06-01T21:59:20+00:00

I have a handler : onCalendarEditFunc that is ment to edit selected cell from

  • 0

I have a handler : onCalendarEditFunc that is ment to edit selected cell from the grid. For now I have this:

onCalendarEditFunc: function() {
        var selection = this.getView().getSelectionModel().getSelection();
        requires : [
            'Ext.grid.plugin.CellEditing',
            'Ext.grid.column.Column'
        ]



        edit = this.editing;
        console.log(this.getView().getSelectionModel().getSelection());
        edit.cancelEdit();
    //  this.store.insert(0, rec);
        edit.startEditByPosition({
            row: this.store.indexOf(selection[0]),
            column: 0
        });

    },

where row: this.store.indexOf(selection[0]), works fine and being like that I can edit the first cell from a selected row. But my row has a multiple columns, so I want to give column: a value which is the value of the selected cell.

Thanks

Leron

  • 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-01T21:59:21+00:00Added an answer on June 1, 2026 at 9:59 pm

    In order to detect the exact cell selected by the user (if you want to edit button functionality which make the selected cell editable as it was in my case) here is what you can do. That’s the begining of the initComponent function

    initComponent: function(){
    
            this.editing = Ext.create('Ext.grid.plugin.CellEditing');
            Ext.apply(this, {
                title: 'Календар',
                frame: false,
                plugins : [this.editing],
                store: 'CalendarEvents',
                selModel: {
                    selType: 'cellmodel'
                },
    

    The important part here is

    selModel: {
              selType: 'cellmodel'
              },
    

    which then allows you to use the following syntaxis in the edit function:

    editfunction: function() {
        var selection = this.view.getSelectionModel().getCurrentPosition();
        requires : [
            'Ext.grid.plugin.CellEditing',
            'Ext.grid.column.Column',
            'Ext.selection.CellModel'
        ]
    
    
    
        edit = this.editing;
        //console.log(this.view.getSelectionModel().getCurrentPosition().column);
    
        edit.cancelEdit();
    //  this.store.insert(0, rec);
        edit.startEditByPosition({
            row: selection.row,
            column: selection.column
        });
    
    },
    

    And this is it, now you get the position of the selected cell and pass it so you can start editing from there or as it is in the function:

    edit.startEditByPosition({
                row: selection.row,
                column: selection.column
            });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a handler and a runnable, Handler has a loop that runs from
I have a Handler class that looks like this: class Handler{ public $group; public
We have a requirment which requires to have an Handler that is extended from
I have a message handler, which consumes from a JMS queue and that sends
I have an event handler that will remove an element from a list of
I have a handler that shows user a message (this is called by jquery
I have a handler (c#/asp.net) that pulls images from a database. The current format
I mean, if I have this handler : $(document).ready(function() { $('.myElement').change(function() { // some
I have a Handler from my sub-Activity that was called by the main Activity
I have an event handler that needs to determine a type and execute code

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.