[CLOSED] Migrating from Ext.net 2.5 to Ext.net 4.1: GridPanel, CellDblClick

  1. #1

    [CLOSED] Migrating from Ext.net 2.5 to Ext.net 4.1: GridPanel, CellDblClick

    The following code refers to a GridPanel

    <Listeners>
        <CellDblClick Handler="if (isTextAreaCell(this, td, cellIndex, record, tr, rowIndex)) return false;}"  />
    </Listeners>
    It seems that the parameter cellIndex starts from 1 and not from 0 as before.
    Can you confirm that?

    RowIndex instead has remained the same.

    Thank you
    Last edited by geoffrey.mcgill; Aug 26, 2016 at 10:57 PM.
  2. #2
    Using Ext.net 2, the cellIndex parameter passed by CellDblClick was 0-based.
    Using Ext.net 4 cellIndex is 1-based

    You can confirm that?
    Last edited by geoffrey.mcgill; Aug 26, 2016 at 10:55 PM.
  3. #3
    No problem, investigating myself, I solved the issue and I share it.
    It might be useful to someone else.

    In CellDblClick and CellClick event handler (GridPanel), cellIndex paramenter behaves differently between Ext.Net 2.5 and Ext.Net 4.1

    Using Ext.net 2.5, the cellIndex parameter ignores the hidden columns (Using it as the index do grid.columns, errors can occur if there are hidden columns)

    Using Ext.net 4.1, the cellIndex parameter takes account of hidden columns.

    This is what I understood, I hope it is correct.
    And I hope you understand!
    Last edited by geoffrey.mcgill; Aug 26, 2016 at 10:54 PM.

Similar Threads

  1. Replies: 4
    Last Post: Oct 10, 2013, 4:57 AM
  2. [CLOSED] Migrating GridPanel Command to columns
    By rmelancon in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 01, 2013, 5:03 PM
  3. [CLOSED] Migrating a MVC App from v1 to v2
    By RCN in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 10, 2012, 7:05 PM
  4. Replies: 2
    Last Post: Mar 21, 2012, 11:06 AM
  5. Editin MVC with CellDblClick Listener
    By Dominik in forum 1.x Help
    Replies: 1
    Last Post: May 04, 2010, 9:30 AM

Posting Permissions