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

Alignment of "Add new item" button

2 Answers 718 Views
Grid
This is a migrated thread and some comments may be shown as answers.
louis
Top achievements
Rank 1
louis asked on 28 Nov 2012, 04:11 PM
I have the following line in my grid:

.ToolBar(toolbar => toolbar.Create().Text("Add"))


How do I align the button to the right, which is otherwise defaulted to left?

2 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 28 Nov 2012, 08:33 PM
Hello Louis,

You can achieve this using CSS and the button's specific class. For example: 
.k-grid .k-button.k-grid-add{
    float: right;
}

I hope the suggested approach fits your requirements.
 
Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Russ
Top achievements
Rank 2
answered on 07 Aug 2014, 10:33 PM
I just got this to work by adding this to my Site.CSS file:

.k-grid-toolbar a.k-button {float:right;}

Using MVC 5 with VS2013
Tags
Grid
Asked by
louis
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Russ
Top achievements
Rank 2
Share this question
or