1. #1
    Sencha User
    Join Date
    Mar 2008
    Posts
    55
    Vote Rating
    6
    andong is on a distinguished road

      0  

    Default [4.2.1 883] Grid.getSelectionModel().getLastSelected() not refreshed!

    [4.2.1 883] Grid.getSelectionModel().getLastSelected() not refreshed!


    I have put one grid and one form together to manage a simple list data.

    I call grid.reload method to refresh the grid data when I add new row or update one row every time. But the grid.getSelectionModel().getLastSelected() method was not refreshed when I update one row more than 2 times, I call form.loadRecord method to display the row info, but the form data was not I have updated before. Here is a simple table to show the issue:
    Times, Real Value, Form displayed value
    1, A, A
    2, AB, A
    3, ABC, AB
    4, A, ABC

    But when I click another row in the grid and then to edit the row, everything is ok, no problem.

    So I think this must be a issue about the grid component.

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    3,117
    Vote Rating
    59
    Gary Schlosberg has a spectacular aura about Gary Schlosberg has a spectacular aura about Gary Schlosberg has a spectacular aura about

      0  

    Default


    Not sure I understand entirely. Would it be possible to post a test case which reproduces the problem?

  3. #3
    Sencha User
    Join Date
    Mar 2008
    Posts
    55
    Vote Rating
    6
    andong is on a distinguished road

      0  

    Default


    It's a simple issue. First I use a form to save data and use grid.reload() method to refresh the grid data. Second I use form.loadRecord method to edit one row of the grid, after edit successfully, I edit the same row of the grid again and again, the issue was occured. the values were displayed in the form were not the last I have edited.

    Can you understand clearly? Just a normal operation by editing one grid row again and again.

  4. #4
    Sencha User
    Join Date
    Mar 2008
    Posts
    55
    Vote Rating
    6
    andong is on a distinguished road

      0  

    Default


    Can anyone give me a hand?

  5. #5
    Sencha User
    Join Date
    Mar 2008
    Posts
    55
    Vote Rating
    6
    andong is on a distinguished road

      0  

    Default


    I think this must be a bug. Where is the new version can download?

  6. #6
    Sencha User
    Join Date
    Mar 2008
    Posts
    55
    Vote Rating
    6
    andong is on a distinguished road

      0  

    Default


    Anyone has the same problem?

  7. #7
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    3,117
    Vote Rating
    59
    Gary Schlosberg has a spectacular aura about Gary Schlosberg has a spectacular aura about Gary Schlosberg has a spectacular aura about

      0  

    Default


    Looks like it's a known issue:
    http://www.sencha.com/forum/showthread.php?261111

  8. #8
    Sencha User
    Join Date
    Mar 2008
    Posts
    55
    Vote Rating
    6
    andong is on a distinguished road

      0  

    Default


    Yes, you'r right.

    We have to wait Sencha to publish the next relase as soon as please.

Thread Participants: 1

Tags for this Thread