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

Telerik RadGrid - Change Direction Of A Specific Column - Not Entire Row Or Table

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
SilverLight
Top achievements
Rank 1
SilverLight asked on 29 Jun 2012, 08:01 PM

i have a little problem about direction of a specific column in telerik rad grid.
with firebug we can find and change the direction of a table(master or detail) easily.
but there is no any class for a specific column to access.
how can i change direction of a specific column, not entire row or table in telerik radgrid?

thanks in advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 02 Jul 2012, 05:44 AM
Hello,

One suggestion is you can set CSS class for a column.
C#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
 if (e.Item is GridDataItem)
 {
   GridDataItem item = e.Item as GridDataItem;
   item["UniqueName"].CssClass = "dir";
 }
}
CSS:
.dir
{
  direction:rtl ;
}

Thanks,
Shinu.
Tags
Grid
Asked by
SilverLight
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or