1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    287
    Vote Rating
    0
    jarrod is on a distinguished road

      0  

    Default GridView focusRow() does not work if column 0 is hidden

    GridView focusRow() does not work if column 0 is hidden


    focusRow() works only if column 0 is not hidden due to the following:

    Code:
    row.childNodes.item(0).focus()
    Btw, I'm storing additional internal row data which is never displayed (except for debugging purposes) but used more for determining the style of the grid row, as well as adjacent row cells. Currently, storing these internal data as hidden columns - which probably isn't the best method since hidden columns are created but never ever displayed - appreciate any good suggestions for the JSONDataModel.

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    You should probably consider using the dataIndex property on the column model and "mapping" your data to the appropriate data column index. This allows you to have all the data you want in your data model and selectly include what you want in the grid. Sounds like what you are trying to do.

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    287
    Vote Rating
    0
    jarrod is on a distinguished road

      0  

    Default


    Thanks, will check it out.

Similar Threads

  1. Hidden Column Headers
    By willpage in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 16 Jan 2007, 3:05 PM
  2. Problem with hidden column in grid
    By manugoel2003 in forum Ext 1.x: Bugs
    Replies: 7
    Last Post: 21 Dec 2006, 8:50 AM
  3. In Grids, does not work function "focusRow" :(
    By lbpf in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 29 Nov 2006, 6:39 AM
  4. Replies: 8
    Last Post: 31 Oct 2006, 6:57 PM
  5. EditGrid hidden column
    By anakreon in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 25 Oct 2006, 2:05 AM

Thread Participants: 1