This is a migrated thread and some comments may be shown as answers.
Binding RadEditor to Object Property
3 Answers 55 Views
This is a migrated thread and some comments may be shown as answers.
SuperXRAY
Top achievements
Rank 2
SuperXRAY asked on 24 Apr 2008, 04:13 PM
As this worked in ASP.NET RadControls RadEditor:

...html='<%# Bind("ShortDescription") %>'...

There is no 'html' property of the AJAX RadEditor. Instead you use

<content>
Some stuff....
</content>

So, how do you Bind the editor to ShortDescription as I have previously done with the NON-AJAX RadEditor. You CANNOT do this:

<content>
<%# Bind("ShortDescription") %>
</content>

If code-behind is required, that's flat ridiculous. The examples are wrong and the online help is also incorrect, telling me to use ...content='<%# Bind("ShortDescription") %>'...

There is no content propert of this RadEditor.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 Apr 2008, 10:31 AM
Hi SuperXRAY,

RadEditor for ASP.NET AJAX offers an inline Content property

and you can set it manually like this:

<telerik:RadEditor ID="RadEditor1" Content="sample content"  runat="server"></telerik:RadEditor>

or as a inner-tag:

<telerik:RadEditor ID="RadEditor1" runat="server">
    <Content>
        sample content
    </Content>

</telerik:RadEditor>

You can see in the attached video that both ways work as expected.

In your case you should bind the editor using the inline property, e.g.

<telerik:RadEditor ID="RadEditor1" Content=' <%# Bind("ShortDescription") %>'  runat="server"></telerik:RadEditor>

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
SuperXRAY
Top achievements
Rank 2
answered on 30 Apr 2008, 06:12 PM
Yeah, the first scenario does work at this point:

Content=<%# BlahBlah %>

However, this is not exposed as an available tag (using Intellisense) in Visual Studio 2008, nor do I know if this works properly at this time, as none of the AJAX calls are working since doing our upgrade. I'll deal with that, but why is this property not exposed?
0
Accepted
Rumen
Telerik team
answered on 01 May 2008, 12:09 PM
Hi,

This is omission on our side. Please, excuse us for it.

I notified our developers and they will expose this inline property in the Intellisense. I updated your Telerik points for your report.


Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Asked by
SuperXRAY
Top achievements
Rank 2
Answers by
Rumen
Telerik team
SuperXRAY
Top achievements
Rank 2
Share this question
or