2

I change some values of a tree node programmatically and want to show the Ext.tree.Panel the new value.

With set() I get the record "dirty" but somehow this isn't enough to trigger the renderer to rerender the row.

sra
  • 23,820
  • 7
  • 55
  • 89
K..
  • 4,044
  • 6
  • 40
  • 85

1 Answers1

2

Use beginEdit() and endEdit() instead. That should trigger the responsible events

sra
  • 23,820
  • 7
  • 55
  • 89
  • Thank you. I saw those methods and thought they were something like "locks" while editing nodes. Added them at the beginning and end of every modifying model-method and everything works :) – K.. Sep 26 '12 at 14:33
  • 2
    @da_b0uncer Not all, they are exactly for such use cases :) They will also prevent the dirty mark until you call `endEdit()` so that nothing will happens until you're with the edit. – sra Sep 26 '12 at 14:37
  • I see... I made some `get()` and `set()` calls to change the image of a row in a column, because I didn't know about this. Now I probably can rely only on the renderer to do this. – K.. Sep 26 '12 at 15:02