[CLOSED] Grid Panel Continuous Cell Editing in v1.x not in v2.x?

  1. #1

    [CLOSED] Grid Panel Continuous Cell Editing in v1.x not in v2.x?

    Hi

    I need to simulate the continuous editing of Grid Panel v1.x in v2.x. meaning when i put in a value in a cell and press enter to accept it, i need to move to the next row in same column. When i Press Tab it moves to the next column.

    I saw several post on the issue, but wasn't enough to help or point me in the correct direction.

    This snippet seem workable however all my column are created in code behind can you provide me with a sample on how to add the Listeners Specialkey handler in code behind or any order solutions.

    Thanks a lot.

    NumberField
    
    <ext:NumberField runat="server">
        <Listeners>
            <SpecialKey Handler="if (e.getKey() === e.ENTER) {
                                     this.up('gridpanel').enterWasPressed = true; 
                                 }">
            </SpecialKey>
        </Listeners>
    </ext:NumberField>
    
    CellEditing
    
    <ext:CellEditing runat="server">
        <Listeners>
            <Edit Handler="if (e.grid.enterWasPressed) {
                               this.startEdit(e.rowIdx + 1, e.column);
                               e.grid.enterWasPressed = false;
                           }" />
        </Listeners>
    </ext:CellEditing>
    Last edited by Daniil; Jan 16, 2015 at 9:21 AM. Reason: [CLOSED]
  2. #2
    Hi @garyawalker,

    can you provide me with a sample on how to add the Listeners Specialkey handler in code behind
    There are two ways, at least.

    NumberField nf = new NumberField
    {
        Listeners =
        {
            SpecialKey =
            {
                Handler = @"if (e.getKey() === e.ENTER) {
                                this.up('gridpanel').enterWasPressed = true;
                            }"
            }
        }
    };
    or

    NumberField nf = new NumberField();
    nf.Listeners.SpecialKey.Handler = @"if (e.getKey() === e.ENTER) {
                                            this.up('gridpanel').enterWasPressed = true;
                                        }";
  3. #3
    Hi. It sounds like you are doing something similar to what I do:
    A real-time, "MS Excel-like", grid with dynamic columns created in code behind.

    If this is correct I may have an example that can help you.
  4. #4
    Yes that's correct, I would really appreciate the sample!
  5. #5
    Hi @garyawalker,

    Please clarify could we (Ext.NET team) help you more in this thread?
  6. #6
    How can this be done client side? Creating a handler on the column listener?

    Thank you
  7. #7
    Hi @registrator,

    Sorry, I don't quite understand the question.

    The solution in this thread is based on two client side listeners - CellEditing's Edit and NumberField's SpecialKey. So, it is done on client side.
  8. #8
    Yes, you are right. I'm sorry. I'll give it a try like this.

    Thank you

Similar Threads

  1. [CLOSED] Retaining grid filter on cell editing
    By vmehta in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 09, 2014, 7:40 PM
  2. [CLOSED] Custom Validation in grid cell Editing
    By RajivDutt in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 14, 2014, 5:32 PM
  3. [CLOSED] Cell editing in the data grid
    By RRD in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 19, 2013, 7:01 PM
  4. Grid Panel Cell Editing focus in CheckColumn
    By shaileshsakaria in forum 2.x Help
    Replies: 3
    Last Post: Apr 27, 2013, 11:58 AM
  5. Grid Panel Cell Editing focus
    By shaileshsakaria in forum 2.x Help
    Replies: 0
    Last Post: Jan 13, 2013, 9:14 AM

Posting Permissions