Binding RadEditor to Object Property

4 posts, 1 answers
  1. SuperXRAY
    SuperXRAY avatar
    82 posts
    Member since:
    Feb 2007

    Posted 24 Apr 2008 Link to this post

    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.
  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 25 Apr 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. SuperXRAY
    SuperXRAY avatar
    82 posts
    Member since:
    Feb 2007

    Posted 30 Apr 2008 Link to this post

    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?
  5. Answer
    Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 01 May 2008 Link to this post

    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
Back to Top