Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid.fetchData() is not fired after startEditingNew -> discardAllEdits

    Version 11.1p built 2017-12-05

    Hi, I guess this would be a bug in SmartClient. I found the fetchData() is not fired after running startEdingNew() and discardAllEidts() in a row.

    My scenario is link below,

    1. I have set autoFetchData to false for the ListGrid
    2. I pressed button that calls ListGrid.startEdingNew()
    3. Right after #2, I changed the mind not to add a record so, I pressed cancel button which calls ListGrid.discardAllEdits().
    4 And when I pressed a button which calls ListGrid.fetchData();

    And I found smartclient doesn't call fetchData at all looking at developer console even though I have actually many rerecords in the DB.

    Is there anybody who has this type of issue? Thanks in advance for your advice,




    #2
    Please see the docs for fetchData() - by design it does not result in a fetch if criteria are unchanged.

    Comment

    Working...
    X