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

[Solved] Charging content from treeview

3 Answers 120 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Patxi
Top achievements
Rank 1
Patxi asked on 14 Apr 2009, 10:50 AM
Hi,

I would like to implement a Editor. I have got a treeview with the structure of my application. When clicking on a node (actually a node is a page of my application) the content must be shown in the editor to give the possiblity to the user to change its content.

I need to know how to do that step, when clicking on a node to charge the content of that page into the editor.

Do you know how to this?any nice example?

Thank you in advance.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 Apr 2009, 09:34 AM
Hi Patxi,

RadEditor is very similar to a standard <asp:TextBox control. The difference is that you can load the desired content in the textbox via its Text property. When working with RadEditor you should load the content via its Content property. If you experience any problems, implement your scenario with a standard <asp:textbox> control and send us your code in a support ticket. We will fit it to work with RadEditor and send you back the modified project.


Best regards,
Rumen
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Patxi
Top achievements
Rank 1
answered on 17 Apr 2009, 09:52 AM
Thank you for your reply Rumen.

I know I can do it using Content property. If it was a text I could do it easily. Anyway, I need to set the content of aspx page into the radEditor. And I don“t know how to do this. Open an aspx page, take its content and set it in this editor.

Is this possible?
0
Accepted
Tervel
Telerik team
answered on 21 Apr 2009, 07:53 AM
Hello Patxi,

This demo that demonstrates how to open a file and feed its content to the editor:
http://demos.telerik.com/aspnet-ajax/editor/examples/saveinexternalfile/defaultcs.aspx

However, the file is meant to be HTML file, and not ASPX file. Please note that ASPX server tags are parsed on the server by the ASP NET framework. Feeding this content to the editor, which will work with it on the client will not work well at all.
The editor is not a browser-based alternative of Visual Studio - and you seem to expect to use it in such a manner.

Sincerely yours,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Patxi
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Patxi
Top achievements
Rank 1
Tervel
Telerik team
Share this question
or