Results 1 to 10 of 10

Thread: focusRow problem

  1. #1

    Default focusRow problem

    Hi,
    grid.getView().focusRow(rowIndex) does not focus the required row, any possible reasons for this.

    Thanks in advance.
    Harsha

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    You mean it does not select the row don't you?

  3. #3

    Default

    Quote Originally Posted by Animal View Post
    You mean it does not select the row don't you?
    yea, it does not select or highlight the row.
    The situation is as follows, we have a form in which user enters data and after he clicks on save it is saved into the database and data from database is fetched to a grid, and the row corresponding to the data entered by the user should be highlighted.

    TIA
    Harsha

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    So which part of a GridPanel handles selection? Just by glancing at the API docs?

  5. #5

    Default

    Quote Originally Posted by Animal View Post
    So which part of a GridPanel handles selection? Just by glancing at the API docs?
    Hi,
    Pardon my ignorance, but i am very new to extjs, have been working on it for past 20 days , so could not exactly get what you meant by saying "Which part of gridpanel handles selection?"

  6. #6
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    OK, scanning through http://www.extjs.com/deploy/dev/docs...grid.GridPanel after clicking the "Hide inherited members" button to make it easy, which getter should you use to find something that handles selection?

  7. #7

    Default

    Quote Originally Posted by Animal View Post
    OK, scanning through http://www.extjs.com/deploy/dev/docs...grid.GridPanel after clicking the "Hide inherited members" button to make it easy, which getter should you use to find something that handles selection?
    Code:
    getSelectionModel()
    ??

  8. #8

    Default

    Quote Originally Posted by Animal View Post
    OK, scanning through http://www.extjs.com/deploy/dev/docs...grid.GridPanel after clicking the "Hide inherited members" button to make it easy, which getter should you use to find something that handles selection?
    Hi animal, Thanks a lot, got it.
    But can you please tell me the functionality of view.focusRow()

    TIA
    Harsha

  9. #9
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    It scrolls the row into View, and establishes keyboard focus there. Once focussed, uparrow and downarrow will operate from that point.

  10. #10
    Ext User TigersWay's Avatar
    Join Date
    Oct 2007
    Location
    Bangkok
    Posts
    20

    Cool Not yet!

    Quote Originally Posted by Animal View Post
    It scrolls the row into View, and establishes keyboard focus there. Once focussed, uparrow and downarrow will operate from that point.
    But it does not (yet) work... at least on FF 3.6. Chrome seems to be ok!
    Does not work = focus set, but could be invisible (before scrolling)

    I read somewhere that it has been corrected in the svn..... Could someone give us an idea how to solve this, waiting for the next release?

    Thanks


    @Animal: To set a "unique active row", are we suppose to focus and select, or is there a simpler way?
    Thanks too

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •