Results 1 to 2 of 2

Thread: Upgrading Grid Component

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2012
    Posts
    10
    Vote Rating
    0
      0  

    Default Upgrading Grid Component

    In previous versions of extjs grid.getSelectionModel().getSelected() used to return selected row. Now this method does not exist. What is the alternate way?


    Similarly what is alternative of grid.getStore().getById(rowIndex)


    Is there any proper documentation which lists down all possible changes in GRID component in version 4 and also suggests new ways of doing things. I am really struggling hard to upgrade our Grid component.

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    1,376
    Answers
    347
    Vote Rating
    116
      0  

    Default

    Quote Originally Posted by udayogra View Post
    In previous versions of extjs grid.getSelectionModel().getSelected() used to return selected row. Now this method does not exist. What is the alternate way?
    - grid.getSelectionModel().getSelection() returns an array of selected records.
    - grid.getSelectionModel().getLastSelected() returns last selected record.

    Quote Originally Posted by udayogra View Post
    Similarly what is alternative of grid.getStore().getById(rowIndex)
    - grid.getStore().getById(recordId).
    - grid.getStore().getAt(recordIndex).

Tags for this Thread

Posting Permissions

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