RadEditor in GridTemplateColumn aligning to cent(re)(er).

4 posts, 1 answers
  1. Richard Weeks
    Richard Weeks avatar
    95 posts
    Member since:
    Oct 2009

    Posted 27 May 2010 Link to this post

    Use your version of centre ;)

    Ok, I have the following set up:

    <telerik:GridTemplateColumn   
        HeaderText="Content"   
        UniqueName="ActivityContent"   
        Visible="false">    
        <EditItemTemplate>    
            <telerik:RadEditor   
                ID="ContentEditor"   
                runat="server"   
                ContentAreaCssFile="~/Assets/Styles/GridHtmlEditor.css" 
                Content='<%# Bind("Content") %>' />    
        </EditItemTemplate>    
        <ItemTemplate>    
            <asp:Label ID="ContentLabel" runat="server" Text='<%# Eval("Content") %>' />    
        </ItemTemplate>    
    </telerik:GridTemplateColumn>   

    And the stylesheet:

    body      
    {      
        background-color: white !important;  
        background-image: none !important;  
        color: black;  
        font: 12px Verdana,Arial,Helvetica,Sans-Serif !important;  
        text-align:left !important;  
    }     

    Works really great but the content will not left-align!

    How can I left-align my content?

    Richard


  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 02 Jun 2010 Link to this post

    Hello Richard,

    I tested the setup which you mentioned, and the control behaves as expected.
    Attached to this message, is the code which I used for testing. Please, take a look at it and let me know if this is the expected behavior, or if I am leaving something out.

    Greetings,
    Yavor
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Richard Weeks
    Richard Weeks avatar
    95 posts
    Member since:
    Oct 2009

    Posted 02 Jun 2010 Link to this post

    I managed to get it working, thanks (though for the life of me I have no idea what I actually dide :) I've still got some styles "leaking" in but I can live with that.

    I'd like to make a feature request. Add a property that allows you to say "don't use any stylesheets at all" instead of at present where we have to try and override our styles. Then it could just use one custom stylesheet and absolutely no other.

    Richard
  5. Answer
    Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 04 Jun 2010 Link to this post

    Hello Richard,

    At present, you can turn off the skin(s) for the control by setting:

    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="AccessDataSource1" AutoGenerateColumns="False"
    EnableEmbeddedSkins="false" Skin=""

    Let me know if this is the functionality/behavior you have in mind?

    Best wishes,
    Yavor
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top