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

Align table inside a template column

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 05 Mar 2012, 08:07 AM
I have a grid that is grouped by one field and has as its rightmost column a template column that contains a user control.
This user control just renders as a table with one row and a not-fixed number of columns, the cells containing an 'X' character or a space. Nothing fancy.
My trouble is aligning this table to the right.
In IE9 i can't get it to align to the right. In IE9 compatabilty mode the grid rows align properly, the header row doesn't.
In PDF export the table never aligns to the right; in Word export, it does so nicely.
I tried different style attributes on different levels, wrapping the table in a <div> element, to no avail.
There must be something i missed. Can someone point me in the right direction?

1 Answer, 1 is accepted

Sort by
0
Galin
Telerik team
answered on 08 Mar 2012, 08:33 AM
Hi Michael,

Thank you for contacting us.

I am not quite sure that I correctly understand the case you are describing. I guess you want to align the text in cells to the right. In this case you can use the following CSS rule
.RadGrid .rgHeader,
.RadGrid td
{
    text-align: right;
}

If the issue persists could you please give us more details on what you are trying to achieve or possibly a small running project that we can use to reproduce the case. This will help us provide better support.

Alternatively a live URL will help us as well.

Kind regards,
Galin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Galin
Telerik team
Share this question
or