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

[Solved] Left align filter row dropdown?

6 Answers 459 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 10 Nov 2014, 04:36 PM
I have Grid with the filterable.mode set to "row".   The text that shows in the filter dropdown is centered.  How can I make it left justified?


6 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 11 Nov 2014, 04:55 PM
Hi Steve,

By design text in the filter row dropdown is left aligned (online demo) - could you please inspect the rendered HTML / CSS and check if there is some rule which causes the described outcome? Thank you in advance for your cooperation.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Steve
Top achievements
Rank 1
answered on 11 Nov 2014, 05:41 PM
Hi Iliana,

Sorry but I should have mentioned that my column definitions have this:

filterable: {
    cell: {
        operator: "contains",
        showOperators: false,
        inputWidth: 75
    }
}

The dropdown from this is what is not left aligned but centered.

Thanks,
Steve

0
Iliana Dyankova
Telerik team
answered on 13 Nov 2014, 09:25 AM
Hi Steve,

I am still not able to reproduce the described outcome - could you please modify my test example and demonstrate your current implementation? This way I would be able to advice you further and provide concrete recommendations. 

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Steve
Top achievements
Rank 1
answered on 13 Nov 2014, 07:49 PM
I have attached a .png file with a screen shot that shows what I'm taking about.  Notice under the "Short Description" column that the filter row cell's dropdown has the items centered.  I want them left justified.   I hope this helps.

Thanks,
Steve
0
Accepted
Iliana Dyankova
Telerik team
answered on 17 Nov 2014, 11:59 AM
Hi Steve,

I believe the illustrated outcome is due to some custom CSS rule which overrides the default Kendo UI styling. Could you please inspect the rendered HTML / CSS and check this suggestion?

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Steve
Top achievements
Rank 1
answered on 18 Nov 2014, 08:28 PM
Hi Iliana,

I was a CSS issue.  We are using a style sheet called "universalStylesForBootstrapKendo.css.  In the "Body" CSS tag, it was setting the text-align to center.  I commented it out and that fixed the problem.
Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Steve
Top achievements
Rank 1
Share this question
or