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

Grid PageSizes button width

3 Answers 226 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 30 Dec 2014, 07:28 AM
How do I format the width of the page-sizes button on a grid ??

This is what I have:

.Pageable(p =>
    p.Refresh(true)
    .ButtonCount(10)
    .PageSizes(new[] { 10, 25, 100, 200, 1000 })
    .Input(true)
    )

I have tried the following:
.k-pager-wrap .k-dropdown{
    width: 280px;
}

var ddl = $('[data-role="dropdownlist"]').data("kendoDropDownList");
ddl.list.width(100);

-which only change the width of the dropdown list.
How to change the width of the button itself ??
Thanks.

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 30 Dec 2014, 11:27 AM
Hello Jacob,

The CSS rule should work as expected if you place it after the Kendo UI common CSS file. If the rule needs to be registered before the mentioned file, then increase the specificity of its selector, e.g.:

.k-pager-wrap .k-pager-sizes .k-dropdown
{
   width: .........;
}


Regards,
Dimo
Telerik

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

0
Jacob
Top achievements
Rank 1
answered on 30 Dec 2014, 11:44 AM
Thanks Dimo,

With the right class names, it worked:

.k-pager-wrap .k-pager-sizes .k-dropdown {
    width: auto;
}

0
Bryan
Top achievements
Rank 1
answered on 12 May 2015, 10:06 PM
Thanks, Jacob! That worked.
Tags
Grid
Asked by
Jacob
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Jacob
Top achievements
Rank 1
Bryan
Top achievements
Rank 1
Share this question
or