GridPanel Cell Focus

  1. #1

    GridPanel Cell Focus

    Hi,

    I want to set focus only on next cell (no edit mode) while pressing enter on edit mode of any cell in ext.net:GridPanel. How can I implement this?

    Shailesh
  2. #2
    Hello!

    Please, take a look on this example: https://examples2.ext.net/#/GridPane...ell_Selection/
  3. #3
    Quote Originally Posted by Baidaly View Post
    Hello!

    Please, take a look on this example: https://examples2.ext.net/#/GridPane...ell_Selection/

    Thanks a lot for suggession.
    How can I implement CellSelection using client side script? means how can I select a cell using javascript.

    Shailesh
  4. #4
    Try this:

    App.GridPanel1.selectedData={rowIndex:3,colIndex:2};
    App.GridPanel1.view.panel.initSelectionData();
  5. #5
    Quote Originally Posted by Baidaly View Post
    Try this:

    App.GridPanel1.selectedData={rowIndex:3,colIndex:2};
    App.GridPanel1.view.panel.initSelectionData();
    Thanks but i could make it run. here below is the code

    <Plugins>
    <ext:CellEditing ID="CellEditing1" runat="server">
    <Listeners>
    <Edit Fn="MoveToNextByEnterKey" />
    </Listeners>
    </ext:CellEditing>
    </Plugins>


    and javascript is as below


    var MoveToNextByEnterKey = function (editor, e)
    {

    App.PanelGroupType.selectedData = { rowIndex: 1, colIndex: 3 };
    App.PanelGroupType.initSelectionData();
    //alert(App.PanelGroupType.view.panel.initSelectionD ata());

    };


    this results in nothing.

Similar Threads

  1. [CLOSED] focus on first cell in new record gridpanel
    By albayrak in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Jan 09, 2014, 4:40 AM
  2. GridPanel cell focus
    By Dominik in forum 1.x Help
    Replies: 12
    Last Post: Mar 02, 2012, 11:21 AM
  3. [CLOSED] Have cell, want to trigger editor and give focus...
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 21, 2011, 6:01 PM
  4. Replies: 5
    Last Post: Aug 27, 2009, 7:01 AM
  5. GP - Validate Edit Keep Cell Focus
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Jun 05, 2009, 8:14 AM

Posting Permissions