Flex chart -- begin\end update vs refresh

Posted by: a.sharov on 19 September 2022, 12:32 pm EST

    • Post Options:
    • Link

    Posted 19 September 2022, 12:32 pm EST

    Hi.

    Does flexchart.beginUpdate() and flexchart.endUpdate() has the same effect as refresh? Put it simply, do I need to call to refresh after begin/end update section or endupdate() will do this for me?

    Also, am I right that begin/end update section turns off rendering of control in it’s section, it is like transactional scope when I made some complex change to UI and then draw them at once. Is it correct understanding?

    Thanks in advance.

  • Posted 20 September 2022, 2:25 am EST

    Hi,

    Yes, your understanding is correct. The BeginUpdate method suspends the notifications internally until the EndUpdate method is called. Therefore, the BeginUpdate - EndUpdate method block can be used if you want to make multiple/complex changes in the FlexChart, and after the EndUpdate method is called, all the changes are taken into effect at once.

    If you use the BeginUpdate and EndUpdate methods, you need not call the Refresh manually as it is automatically called by the EndUpdate internally.

    Best Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels