Programmatically call NodeFormatting

2 posts, 0 answers
  1. Itai
    Itai avatar
    2 posts
    Member since:
    Oct 2015

    Posted 08 Oct 2015 Link to this post

    Hello, i have a treeview who changes his content dynamically via the NodeFormatting event. 

    Is there a way to programmatically call this event so I can refresh the content without the need to hover with the mouse above it?

     I've tried the Refresh() method but nothing happens. 


    Thanks in advance! 


  2. Dess
    Dess avatar
    2172 posts

    Posted 08 Oct 2015 Link to this post

    Hello Itai,

    Thank you for writing.

    In order to force the NodeFormatting event, you can call the RadTreeView.BeginUpdate and RadTreeView.EndUpdate methods. An alternative solution is to call the TreeViewElement.Update method:

    I hope this information helps. Should you have further questions I would be glad to help.
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top