Same style for Empty message string of all controls

4 posts, 0 answers
  1. prayag ganoje
    prayag ganoje avatar
    127 posts
    Member since:
    Feb 2010

    Posted 07 Mar 2010 Link to this post

    Hello,

    I am using TextBox and ComboBox controls.

    But i have observed the Empty text for both the controls looks different.

    How to set the same style for both the controls ?

    Also, How to reset and show Empty message string in the combobox ?  Its urgent.

    For example:
    A textbox have "EmptyMessageStyle-Font-Bold" property but combobox dont have it.
  2. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 10 Mar 2010 Link to this post

    Hi Prayag,

    Yes, there's no such property in RadComboBox, but you can set the EmptyMessage bold by using this simple CSS rule:

    Greetings,
    Kamen Bundev
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. J2K
    J2K avatar
    34 posts
    Member since:
    Sep 2005

    Posted 28 Apr 2011 Link to this post

    The kind of response from Telerik to this question is yet another on our list of reasons to say good riddance to Telerik controls.  Of course the whole question of why you put out controls with an empty message property with one style in one control and other styles in other controls begs the whole more basic question of why developers have to spend countless hours cleaning up your mess.  Didn't anyone bother to think "ummm, maybe within each skin, the user experience will be improved with a consistent interface?"  We and I'm sure others buy your controls to cut development time, not spend countless hours on such nonsense.  Here is the question that was asked:

    "I am using TextBox and ComboBox controls.

    But i have observed the Empty text for both the controls looks different.

    How to set the same style for both the controls ?

    Also, How to reset and show Empty message string in the combobox ?  Its urgent.

    For example:
    A textbox have "EmptyMessageStyle-Font-Bold" property but combobox dont have it."

    The Telerik response was simply yet another css hack to clean up the mess for the example, but the question wasn't answered. 

    Could you answer this simple question:  When using the Telerik radcombobox with a WIndows 7 skin, what is the default font and font-styling? 

    Thank you 
     

    TReply

     
  4. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 04 May 2011 Link to this post

    Hi J2K,

    Straight to your question:
    font: 12px "Segoe UI", Arial, sans-serif;
    font-style: italic;

    The font is defined in the CSS file for the particular skin chosen, in your case Windows7, and the style is defined in the base CSS file since it's common for all skins.

    Regarding your query on why there is no EmptyMessageStyle-Font-Bold property, there are two main reason.

    RadCombobox is developed to reflect the behavior of the standard DropDown, and since there is no such property in the standard  control, we haven't implemented it in our control either.

    The second and most important reason why this is not implemented is the overall performance of the control. Whit the amount of properties growing the serialized information send by the server to the client when the control is instantiated on the client is also growing. That's why we've adopted the approach to set these different style in the CSS of the control in order to make it as lightweight as possible.

    The solution suggested by my colleague is not a hack, but a standard approach to set your custom styles to the "Empty Message" of the RadComboBox.

    As for the RadTextBox control, it has style properties because it's not so complicated in terms of functionality and the amount of serialized data is not affecting its performance.

    Best wishes,
    Dimitar Terziev
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top