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

RAD Editor bind to dynamic page, and allow properties to change

1 Answer 54 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Aslam
Top achievements
Rank 1
Aslam asked on 10 Feb 2011, 06:40 PM
We have an ASP.Net application that displays information for each page from the database.
The information includes standard ASP.Net controls and custom controls.
It means all these controls definition, properties (i.e position, color fiont etc) is stored in the database.

We want to develop a wizard that allows to open such a dynamic page and change the properties of these dynamic controls and save changes as properties back into database.

Can we open a page in RAD Editor that has different elements(controls) defined from database, click of each element (control)
access and change each controls properties (like font-color, background, etc) and when clicked save should save each property into the database.

My manager is expecting Telerik RAD Editor should help to achieve this.

Any guidance on this side is appreciated.

regards
Ami

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 10 Feb 2011, 08:27 PM
Hello Ami,

RadEditor is a client-side browser tool, providing the ability to visually edit pure HTML text using the underlying Rich Text Editing engine of the browser. This browser engine supports only standard HTML/XHTML tags and plain text.

Please, note that if you put a server tag in RadEditor the editor will not strip the tag, but will not render it in Design mode.

The ASP and ASP.NET server tags are not HTML tags and the browser is not able to visualize them. The browser cannot visualize XML Tags and when you put <asp:button> in the editor, the server-side framework will not parse the content (as it is part of the editor, not part of the page).
So, instead of sending to the client the HTML tag <input type=button> it will send <asp:button> - which means nothing to the browser.

To understand the situation better, please create a new HTML page with extension .html and add your server tags content you put to the browser and load it in the browser.

RadEditor is more similar to a desktop HTML editor rather than to an integrated program like MS Word, FrontPage or Visual Studio for web and your scenario is not supported.

What you can do is to render the asp.net tag border using inline style or css class, e.g.

<asp:button id="btnTest" style="border: 1px solid red; width: 100px;" runat="server">button</asp:button>



Kind regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Aslam
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or