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

Bootstrap Small/Condensed

14 Answers 383 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bill O'Neil
Top achievements
Rank 1
Bill O'Neil asked on 26 Sep 2015, 03:02 PM

Any consideration to a Bootstrap Telerik Skin that matches the condensed/small Bootstrap sizing.  Specifically for input controls -- like textbox and combobox, etc.

Love the Bootstrap skin - its just a bit large.  And so many of the other Telerik skins are gradient/glossy in their look - we could use more "simple & clean" options.

Or is there some .css based method (w/o going through every control) to affect the existing skin?

14 Answers, 1 is accepted

Sort by
0
Ivan Zhekov
Telerik team
answered on 01 Oct 2015, 05:40 AM
Hi, Bill.

The Bootstrap skin is designed to be flexible in the sense that if you change the font size the component should grow and shrink.

We do not, however, have the various sizes available in Bootstrap e.g. small, medium, large and so on buttons, inputs etc.

That's not an easy task and thus we do not have it used in our controls.

Regards,
Ivan Zhekov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Ivan Zhekov
Telerik team
answered on 01 Oct 2015, 05:47 AM
One last bit -- that's not to say we are not keen on adding such features in our controls. Quite the contrary. We are keen, very keen.

BUT, there is a long path that should be walked. For instance, most of the differences between classic and lightweight rendering are mere structural changes, but we still use the same class names. Those class names, unfortunately, are "scoped" to individual controls. For instance, if you have and arrow "component" in RadComboBox it would be rcbArrow, in RadEditor it would be reArrow, where as it's the same arrow.

The solution is pretty straightforward -- change the class names, use common abstract structures and things will workout.

So while the path seems clear, it's not quick / easy. Changing the class names / structure will make currently existing skins obsolete and practically useless. That's the same reason why skins for classic rendering will not work on lightweight and vice versa.

That's why we have built a new tool for skins called ThemeBuilder that can not only create skins for lightweight controls, but can also save the setting of the skins e.g. the color values that were in use. So in a later moment, if add something new, or change something existing, anyone can very easily import the settings back into ThemeBuilder and regenerate the theme.

So that's about it on different states of skins...

Regards,
Ivan Zhekov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Bill O'Neil
Top achievements
Rank 1
answered on 14 Jan 2016, 06:49 PM

Is there a list anywhere of what controls inherit page styles and which do not?

Example - using Q1 2016 - a RadGrid w/ the Bootstrap theme will inherit the body font settings - so if I use Verdana 11px it looks exactly how I'd like.

RadComboBox does NOT do this - BUT if I set "Font-Size="11px"" on the combobox itself - it scales down nicely.

Is there an easy way to handle this?  Use app_themes to set font size perhaps?  Or is there a telerik specific solution?

0
Ivan Zhekov
Telerik team
answered on 20 Jan 2016, 07:55 AM
Bill,

for 2016 Q1 we didn't quite managed to "untie" the font size so it can be inherited for all controls. That being said, we are targeting 2016 Q1 SP1 for this feature.

So when we complete the transition, we'll create the list, but it goes basically like this:

* Material and Bootstrap skin retain their font family and font size
* Metro skins retain their font family and inherit font size
* All other skins inherit both font size and font family
* All controls should be customizable via font-size property either the serverside one or via CSS

That applies to all controls that have light-weight rendering.

And since, we have not prepared yet an article, would you say the above is fit for help article content, or perhaps we should elaborate?

Regards,
Ivan Zhekov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Bill O'Neil
Top achievements
Rank 1
answered on 20 Jan 2016, 01:04 PM

Glad to hear about SP1 - but I'm still a bit confused.

You say:

Material and Bootstrap skin retain their font family and font size

Right now - if I look at RadGrid using Bootstrap Skin I see that it keeps its FONT FAMILY but inherits the FONT SIZE from the page.

 ie my page is set to Verdana 12px - RadGrid shows "Helvetica Neue",Helvetica,Arial,sans-serif at 12px.

So this will change and Bootstrap won't be affected by the page?  Or am I misunderstanding?

(this all started because I want to use Bootstrap Skin - but the default font size is too large - I find set to 12px it works perfectly - and I hoped to do this through inheritance and not setting it on every control or through skins.)

0
Ivan Zhekov
Telerik team
answered on 21 Jan 2016, 07:39 AM
Thank you for reporting that bit about the grid.

As we are not completely done with the migration, we could consider dropping the font-size from Bootstrap skin. After all, that's what they did with Bootstrap 4 (still alpha, but coming)

Regards,
Ivan Zhekov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Bill O'Neil
Top achievements
Rank 1
answered on 21 Jan 2016, 12:48 PM

why would material and bootstrap be excluded?  I for one would be VERY interested in a bootstrap skin that adapted throughout all the controls (in fact - such a thing was described as the plan when I inquired a few months back.)

Bill

0
Ivan Zhekov
Telerik team
answered on 25 Jan 2016, 11:23 AM
Bill,

originally, we wanted to have the controls appear the same, that's why we wanted to go with fixed font size. However, inheriting the font-size from the body element will solve the issue.

This is why at the end we are removing font-size styles from all controls and skins. (We'll keep the font-name though)

I am bookmarking this thread and I will let you know when you can download an internal build for testing. Since this is a huge change, we would actually appreciate any feedback you may have.

Regards,
Ivan Zhekov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Bill O'Neil
Top achievements
Rank 1
answered on 25 Jan 2016, 03:10 PM
I look forward to it.  Can we expect this to be in a public release by SP1?  Or farther out?
0
Ivan Zhekov
Telerik team
answered on 28 Jan 2016, 09:10 AM
Yes, the changes will be included in the SP and the official release that follows.

However, if you would like to see the changes earlier, you can do so by downloading the next internal build, due out next Tuesday.

Regards,
Ivan Zhekov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Bill O'Neil
Top achievements
Rank 1
answered on 06 Feb 2016, 04:58 PM

Haven't been able to test the release (non official/CDN supported releases are tough for us to test) - but I thought I might mention that aspects of RadGrid Bootstrap skin are altered by the Bootstrap css.  I know Bootstrap's global styles can mess w/ things - but the whole point of the bootstrap skin is to merge the two (Telerik Controls in conjunction w/ Bootstrap.)

It might be worth reviewing.  The header changes size and some context menus have issues.

0
Galin
Telerik team
answered on 11 Feb 2016, 07:28 AM
Hi Bill,

I will ask you to send us a sample project where the issue can be observed. This we will be able to test it locally and provide a proper solution. Thank you for the cooperation.

Regards,
Galin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Manu
Top achievements
Rank 2
answered on 12 Apr 2019, 04:36 PM

hi Ivan,

any updates? so with 2019 SP1 what will be the best practice to change the Bootstrap skin control size?

0
Rumen
Telerik team
answered on 17 Apr 2019, 11:14 AM
Hi,

You can easily control the dimensions of the Telerik controls in lightweight render mode via the font-size CSS setting as explained in the Fonts article. For example via the body class 


<style>
body  {
    font-size: 9px;
}
</style>

or the controls' specific classes:

<%@ Page Language="C#" AutoEventWireup="true" %>
 
<%@ Register Namespace="Telerik.Web.UI.Debug" TagPrefix="debug" %>
 
<!DOCTYPE html>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<head runat="server">
    <title></title>
           <style>
           .RadDropDownList, button.RadButton , .RadInput  {
               font-size: 30px;
           }
             </style>
</head>
 
<body>
 
    <form id="form1" runat="server">
 
       <asp:ScriptManager runat="server" />
 
        <telerik:RadDropdownList Skin="Bootstrap" RenderMode="Lightweight" ID="RadDropdownList1" runat="server">
            <Items>
                <telerik:DropDownListItem Text="Item1" />
            </Items>
        </telerik:RadDropdownList>
        <telerik:RadButton Skin="Bootstrap" RenderMode="Lightweight" ID="RadButton1" Text="Submit"  runat="server"></telerik:RadButton>
        <telerik:RadTextBox Skin="Bootstrap" RenderMode="Lightweight" ID="RadTextBox1" Text="Some Content"  runat="server"></telerik:RadTextBox>
    </form>
</body>
</html>


Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Bill O'Neil
Top achievements
Rank 1
Answers by
Ivan Zhekov
Telerik team
Bill O'Neil
Top achievements
Rank 1
Galin
Telerik team
Manu
Top achievements
Rank 2
Rumen
Telerik team
Share this question
or