ControlItemTemplate and RadFormDecorator

2 posts, 0 answers
  1. Christopher Wooten
    Christopher Wooten avatar
    4 posts
    Member since:
    May 2010

    Posted 11 May 2010 Link to this post

    Hey there,

    I'm attempting to use the RadFormDecorator to style some ASP.Net Button and DropDownList controls within the CommandItemTemplate of a RadGrid.  The relevant code looks like this:

    <telerik:RadFormDecorator ID="RadFormDecorator1" Skin="Vista" runat="server"/> 
                    <telerik:RadGrid ID="SentBox" runat="server" AutoGenerateColumns="False" GridLines="None" 
                        OnItemCommand="SentBox_ItemCommand" ShowGroupPanel="false" AllowFilteringByColumn="false" 
                        PagerStyle-Mode="NextPrevAndNumeric" AllowSorting="true" AllowPaging="true" OnItemDataBound="SentBox_ItemDataBound" 
                        OnNeedDataSource="SentBox_NeedDataSource" OnItemCreated="SentBox_ItemCreated" CssClass="DocSiteGrid" 
                        PageSize="10" ShowStatusBar="true" OnSelectedIndexChanged="SentBox_SelectedIndexChanged"
                        <HeaderStyle CssClass="Normal" Font-Bold="true" /> 
                        <MasterTableView CommandItemDisplay="Top"
                            <CommandItemTemplate> 
                                <table style="width: 100%"
                                    <tr> 
                                        <td> 
                                            <asp:DropDownList ID="SentBoxSelect" runat="server" CssClass="Normal" AutoPostBack="true" OnSelectedIndexChanged="SentBoxSelect_SelectedIndexChanged"
                                                <asp:ListItem Text="All" Value="All" /> 
                                                <asp:ListItem Text="None" Value="None" /> 
                                            </asp:DropDownList> 
                                            <asp:Button ID="btnReplySent" runat="server" CssClass="Normal" Text="Reply" /> 
                                            <telerik: 
                                        </td> 
                                        <td style="text-align: right"><asp:Button ID="SentTools" runat="server" CssClass="Normal" Text="Tools & Settings" /></td
                                    </tr> 
                                </table> 
                            </CommandItemTemplate> 

    Unfortunately, this isn't working as I'd expect at the moment.  Any controls outside of the CommandItemTemplate are skinned appropriately; those within are not.  

    Suggestions?

    Chris


  2. Christopher Wooten
    Christopher Wooten avatar
    4 posts
    Member since:
    May 2010

    Posted 12 May 2010 Link to this post

    I found the problem.  I had assigned a CSSClass to the items.  This was preventing the Form Decorator from skinning it.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top