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

Same style for Empty message string of all controls

3 Answers 173 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
prayag ganoje
Top achievements
Rank 1
prayag ganoje asked on 07 Mar 2010, 07:53 AM
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.

3 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 10 Mar 2010, 09:50 AM
Hi Prayag,

Yes, there's no such property in RadComboBox, but you can set the EmptyMessage bold by using this simple CSS rule:
.RadComboBox .rcbInputCell .rcbEmptyMessage {
    font-weight:bold;
}

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.
0
J2K
Top achievements
Rank 1
answered on 28 Apr 2011, 01:10 PM
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

 
0
Dimitar Terziev
Telerik team
answered on 04 May 2011, 10:53 AM
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.

Tags
ComboBox
Asked by
prayag ganoje
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
J2K
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or