Problem with HTML in node.text and ServerSideCallBack Expand Mode

2 posts, 0 answers
  1. Albert
    Albert avatar
    3 posts
    Member since:
    Dec 2011

    Posted 06 May 2013 Link to this post

    We have an issue with RadTreeView node text not displaying correctly after a postback if a folder was expanded using ServerSideCallBack after the control was initially bound. In these scenarios any internal nodes that contain HTML formatting in text lose that HTML formatting. PersistLoadOnDemandNodes is set to True.

    Specifically, what we have observed is that if  text of a node that was loaded on demand contains HTML (i.e.

    node.text = "My Node Text <span class='NewItem'>-New</span>";

    ) then upon postbacks the node stays expanded, however the text of internal nodes looses all HTML formatting and plain text is displayed. Any nodes that were loaded as expanded on the initial load show correctly and retain internal HTML formatting, only the nodes that were expanded on demand lose their HTML formatting. Is there a workaround to this issue?

    Thanks,
    Albert

  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 09 May 2013 Link to this post

    Hi Albert,

    Can you please open a support ticket where you can attach a very simplified runnable project demonstrating the issue that you get. Thus I will be able to test it thoroughly and get a better idea of the issue that you describe? Can you also clarify the exact version of the Telerik controls that you are using? 

    Kind regards,
    Kate
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top