Why no RadLabel

6 posts, 2 answers
  1. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 29 May 2015 Link to this post

    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)?

     

     

  2. Answer
    Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 02 Jun 2015 Link to this post

    Hi,

    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
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 02 Jun 2015 in reply to Rumen Link to this post

    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.
     

     

     

     

  5. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 05 Jun 2015 Link to this post

    Hi,

    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
    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
  6. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 05 Jun 2015 in reply to Danail Vasilev Link to this post

    Thanks Danial. This is why it would be great if there was a RadLabel control - although possible to do, it is a lot of work to style labels (especially if the end user chooses their own style).
  7. Answer
    Rumen
    Admin
    Rumen avatar
    12849 posts

    Posted 05 Jun 2015 Link to this post

    Hello,

    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
    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017