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

Grid header styling

1 Answer 334 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kakasaheb
Top achievements
Rank 1
Kakasaheb asked on 19 Jul 2012, 10:43 AM
For our UX requirement we have to remove the default padding which comes with grid header.
Grid header(.k-grid-header) is by default having inline style as : padding-right: 16px;
If we try to remove it by script inside grid databound event, it does not reflect on the screen.
This issue is there only in Chrome(my version is 20), it but works in in Firefox 14.
First  of all this style should not be inline and if we are modifying it as padding-right: 0px; it should reflect on the screen at same time.

You can see this behavior on the kendo demo page.
Open this is in Chrome http://demos.kendoui.com/web/grid/index.html ,
now in developer tools console execute the below snippet.
$('#grid .k-grid-header:first').css('padding-right','0px'); 
this should ideally remove the header's padding , but it does not.

Thanks in advance.
Any help is appreciated. 




1 Answer, 1 is accepted

Sort by
0
Daniël
Top achievements
Rank 2
answered on 19 Feb 2013, 10:26 AM
Just add
scrollable:false,
to your grid options
Tags
Grid
Asked by
Kakasaheb
Top achievements
Rank 1
Answers by
Daniël
Top achievements
Rank 2
Share this question
or