• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Do refresh of grid after edit ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Do refresh of grid after edit ?

    2026-03-22 11 40 07 (2).png 2026-03-22 11 40 07 (3).png 2026-03-22 11 40 07.png Hi i have a grid, with exchange rates. showing the curreny, rate, and date, time & user that last updated this.

    The user is allowed to change the exhg. rate, and i'm using the validation program from the grid to change the logdate, time & user in the postedit procedure

    however i, see with using this, i can nowhere specify the refresh the grid, (or the row only if possible)
    i've tried with the refresh, however this is not working,

    i've now added a 'refresh' button on the grid, but i assume there is a much better way to achieve the refresh, after user has updated the record.
    what is the best way to achieve this.


  • #2
    I would have expected the grid to refresh itself based on you sending back "refresh" true. I think the reason it was not working is due to a missing "success" true property (I might consider this a bug though). So if you were to add SetResponse('success':'true') I think the refresh will work.

    However, for this situation there is a better approach as I imagine you do not want to refresh the entire list. In addition to your SetValue calls I would add the following:
    Code:
    // add this for each field that you are calling the SetValue against
    SetResponse('applyData':'MYFIELD':'MYVALUE');
    This will apply the data to the front end so your record will be updated.

    Comment

    Working...
    X