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

[Solved] Styles and Format for column.add statement in Grid ?

1 Answer 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
IQworks
Top achievements
Rank 1
IQworks asked on 11 Dec 2009, 02:36 PM
  Hi,
   Is there a place I can go to see how to right justify this Username in a Grid Column (right now it is in the middle of the column)....   

columns.Add(o => o.Username).Width(150);
  I do see the "Format" method, but is there a place to see the different ways I can use this ?
  Please let me know if this is really a LINQ or Entity Framework question ?
thanks

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 11 Dec 2009, 03:07 PM
Hi IQworks,

To right align the text you can use this:

columns.Add(o => o.Username).Width(150).HtmlAttributes(new {style="text-align:right"});


Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
IQworks
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or