RadWindow does not display inner text

2 posts, 0 answers
  1. Roman
    Roman avatar
    3 posts
    Member since:
    Dec 2008

    Posted 23 Nov 2009 Link to this post

        <telerik:RadWindow ID="winError" runat="server" Skin="Sunset"   
            VisibleOnPageLoad="True" Behaviors="Close" Visible="False" Behavior="Close"   
            VisibleStatusbar="False" VisibleTitlebar="False">  
            <ContentTemplate> 
                <asp:Label ID="lblErrorMessage" runat="server" /> 
            </ContentTemplate> 
        </telerik:RadWindow>   
     
    I'm using the code and on server side whenever I got an error I populate lblErrorMessage text and make window visible. I always have an empty window popup also my intellisence tells me that: "Element 'contenttemplate' is not supported". What I'm doing wrong?

    Thank you,
    Roman.
  2. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 23 Nov 2009 Link to this post

    1. Make sure you have the newest Telerik assembly. (Q3) - ContentTemplate is supported only in Q3 2009.

    2. In code:

    var lbl= wndAddTask.ContentContainer.FindControl("lblErrorMessage"as Label; 
     
    lbl.Text = "my Message"

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top