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

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

3 Answers 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard Weeks
Top achievements
Rank 2
Richard Weeks asked on 28 May 2010, 01:28 AM
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


3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 02 Jun 2010, 12:09 PM
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.
0
Richard Weeks
Top achievements
Rank 2
answered on 03 Jun 2010, 12:15 AM
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
0
Accepted
Yavor
Telerik team
answered on 04 Jun 2010, 01:26 PM
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.
Tags
Grid
Asked by
Richard Weeks
Top achievements
Rank 2
Answers by
Yavor
Telerik team
Richard Weeks
Top achievements
Rank 2
Share this question
or