Hi,
I understand that there is no RadLabel control? I have read (and used) some of the workarounds for using ASP:Label eg, using RadFormDecorator to style labels, Setting visibility in pre-render for multi-pages.
It just seems that every time I use an asp label I have trouble eg. my current problem is that ASP:Labels do not display on RadWizard Steps.
I was wondering what the reason is for having no RadLabel as surely this is a basic control for you guys to create (compared to other more fancy controls)?
5 Answers, 1 is accepted
Can you please vote for your request in this feedback item: RadLabel? Please, explain how this control will facilitate your development and what are its benefits?
As to the Label controls in the RadWizard: I am not aware of any issues having in mind that the Default demo of the wizard control shows without problems the labels inside the wizard. Can you please test the live demo and provide more information on how to repro the problem, if you are unable to solve it.
Kind regards,
Rumen
Telerik
Thanks, I now see that that RadWizard issue was some other problem of my own but I still see a case for RadLabel.
I tried to fill in the feedback link you provided but it never get's accepted, when I click 'submit' or 'login' it always prompts me to 'create an account' but when I fill in my details it says 'the user already exists'. Here is my feedback, perhaps you can submit on my behalf:
I use asp labels on just about every form. Having a separate label to the built-in ones on eg. RadTextBox allows for better placement and sometimes there is no associated control in which case I would use either an asp label or an asp literal control.
Neither asp label or literal are themed by the RadFormDecorator so this poses a problem for consistent GUI. Also there are other problem where non-rad controls need special code eg. setting label visibility when used on multi-pages.
It seems to me that using only rad controls would make life much easier and RadLabel / RadLiteral are obvious omissions.
Please find my answers to your questions:
- 'the user already exists' - This error means that the user you are trying to register is already registered by someone else in the system. That being said you can choose another username that is not registered by anyone else.
- Styling ASP:Label/ASP:Literal - Generally both controls cannot be styled by the RadFormDecorator. I can suggest, however, an easier workaround to style the ASP:Labels:
1) Set a particular CssClass for all the ASP:Labels on the page. It can also be set by iterating through controls on the server-side.
2) Use the RadFormDecorator CSS classes to create the desired styles for the particular skin. You can find an example below for the Metro and Glow skins:
CSS:
<style>
.RadForm.RadForm_Metro .decorateLabel {
background-color
:
#25a0da
;
color
:
#ffffff
;
}
.RadForm.RadForm_Glow .decorateLabel {
background-color
:
#ffa915
;
color
:
#ffffff
;
}
</style>
​ASPX:
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
></
telerik:RadScriptManager
>
<
telerik:RadSkinManager
ID
=
"RadSkinManager1"
runat
=
"server"
ShowChooser
=
"true"
Skin
=
"Metro"
></
telerik:RadSkinManager
>
<
telerik:RadFormDecorator
ID
=
"RadFormDecorator1"
runat
=
"server"
DecoratedControls
=
"All"
/>
<
br
/>
<
br
/>
<
asp:Label
ID
=
"Label1"
Text
=
"this is label 1"
runat
=
"server"
CssClass
=
"decorateLabel"
/>
<
br
/>
<
br
/>
<
asp:Label
ID
=
"Label2"
Text
=
"this is label 2"
runat
=
"server"
CssClass
=
"decorateLabel"
/>
</
form
>
The above code renders like that - http://screencast.com/t/ggyQk9jlZ
I will also update the feedback item with the above information.
Regards,
Danail Vasilev
Telerik
We will have in mind your feedback and will discuss the idea to add a label control to the suite in 2016.
Kind regards,
Rumen
Telerik