[CLOSED] GridPanel - select cell, but not in edit mode on load

  1. #1

    [CLOSED] GridPanel - select cell, but not in edit mode on load

    I want to select a cell when the grid loads.. but not place in edit mode...like in image: how can I do that?
    Click image for larger version. 

Name:	Capture.PNG 
Views:	13 
Size:	13.9 KB 
ID:	7458
    Last edited by Daniil; Jan 14, 2014 at 7:37 AM. Reason: [CLOSED]
  2. #2
    Hello

    https://examples2.ext.net/#/GridPane...ell_Selection/

    key part for you is :
     CellSelectionModel sm = this.GridPanel1.GetSelectionModel() as CellSelectionModel;
     sm.SelectedCell.ColIndex = 1;
     sm.SelectedCell.RowIndex = 1;
    and

     <SelectionModel>
                    <ext:CellSelectionModel runat="server">
                    </ext:CellSelectionModel>
                </SelectionModel>
    Personaly - do you really need selection? maybe you just need to change background color of particular cell(s)? ( that could be done using custom renderer for example)

Similar Threads

  1. [CLOSED] Gridpanel cell edit based on data type
    By Kev in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 24, 2013, 7:32 AM
  2. Replies: 3
    Last Post: Oct 11, 2013, 10:28 PM
  3. [CLOSED] Gridpanel editalbe cell - select all text of field on cell click
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 18, 2013, 5:20 AM
  4. Replies: 3
    Last Post: Nov 02, 2010, 8:35 AM
  5. GridPanel - Refresh Cell After Edit not working?
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Sep 28, 2009, 11:07 AM

Posting Permissions