Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • marthin 87 posts 106 karma points
    Nov 04, 2010 @ 14:47
    marthin
    0

    PropertyPanel description

    Hi, How do i set a PropertyPanel description text i .net?

    I currently have:

    aspx file

    <%@ Register Namespace="umbraco" Assembly="umbraco" TagPrefix="umb"%>

    <%@ Register Namespace="umbraco.uicontrols" Assembly="controls" TagPrefix="cc1" %>

    <asp:Content ID="Head" ContentPlaceHolderID="head" runat="server">
    <link rel="Stylesheet" href="/umbraco/css/backend/default.css" type="text/css" />

    <script language="javascript" type="text/javascript">


    </script>
    </asp:Content>

    <asp:Content ID="Content" ContentPlaceHolderID="body" runat="server">
    <cc1:TabView ID="tabControl" runat="server" Height="692px" Width="552px" />

    <cc1:Pane ID="GeneralInfo" Height="600px" Width="330px" runat="server">
    <cc1:PropertyPanel runat="server" ID="pp_name">
    <asp:TextBox ID="txtName" runat="server" Width="400px"></asp:TextBox>
    </cc1:PropertyPanel>

     

    And in the cs file

    pp_name.Text = umbraco.ui.GetText("general", "name");  

    But how do i set a description text that comes in within a <small><small> when rendered? I whant an explanation to what to fill in to the textbox, even tough this exampkle is straight forward =)

    I tried somethink like pp_name.GroupingText but that didnt help much.

     

    Thx for any help

    Marthin

  • Lee Kelleher 4026 posts 15837 karma points MVP 13x admin c-trib
    Nov 04, 2010 @ 15:13
    Lee Kelleher
    1

    Hi Marthin,

    There isn't a separate property for the Description.  You'll need to append it to the Text property, adding a <br /> and wrapped with the <small> tags.

    Cheers, Lee.

  • marthin 87 posts 106 karma points
    Nov 04, 2010 @ 15:25
    marthin
    0

    Ok, thx Lee

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies