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

[Solved] Custom Command Alignment

1 Answer 89 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.
Mayank
Top achievements
Rank 1
Mayank asked on 26 Mar 2012, 01:51 AM
Hi,
When I create custom commands they they show left aligned on the grid.
I need to have them aligned to the right.

I tried setting CSS (text-align / float) in .HtmlAttributes() but no luck.
Is there a property/method I can use?

Any help will be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Dadv
Top achievements
Rank 1
answered on 26 Mar 2012, 09:23 AM
Hi,
i have just test this :

 columns.Command(c => c.Delete().ButtonType(GridButtonType.Text).HtmlAttributes(new { @class = "test" })).IncludeInContextMenu(false).Width(15);
and in the css :
.test
{
    text-align:right;
}

and all work fine...

be sure to declare your custom css AFTER the telerik css.
Tags
Grid
Asked by
Mayank
Top achievements
Rank 1
Answers by
Dadv
Top achievements
Rank 1
Share this question
or