Delay update_sum on tree view

update_sum can be called a lot of time as it is called in display which is
called for each record when clearing and if the list of record is large it can
be very slow.

issue4129
review8511004