Announcement

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

    Hiliting not updated on refreshRow

    Hello,

    I am updating my grid row on right click user request using below method.

    grid.refreshRow(records[t]["recordNum"]);

    But some how only data updated not Hiliting. I have set icon, if User have taken few actions for that record.
    So basically, if actions are taken for that record then it will increase count by 1. but I also have set hiliting on greater than 4.
    If actionCount > 4 then display icon. It updates my count to 5,6,7,8 but not displaying icon.
    I explicitly have to refresh browser to see icon.

    I also tried grid.markForRedraw(); but even that does not work.


    I use
    Version v10.0p_2015-01-14/PowerEdition Development Only (2015-01-14)

    Thank you.

    #2
    refreshRow() does not recalculate hilites and neither does a redraw. Normally, if you were to make a change to the data by a supported approach, such as DataSource.updateCaches(), hilites are automatically recalculated.

    If for some reason you are forced to make changes by directly modifying record data (which the grid cannot automatically detect), one way to force hilites to be recalculated would be to call setHilites() with the same hilites you are already using. However, making your data changes with a correct approach is recommended instead.

    Comment

    Working...
    X