This is a migrated thread and some comments may be shown as answers.

Problem with HTML in node.text and ServerSideCallBack Expand Mode

1 Answer 30 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 06 May 2013, 08:38 PM

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

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 09 May 2013, 02:40 PM
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.
Tags
TreeView
Asked by
Albert
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or