This is a migrated thread and some comments may be shown as answers.

ControlItemTemplate and RadFormDecorator

1 Answer 36 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Christopher Wooten
Top achievements
Rank 1
Christopher Wooten asked on 11 May 2010, 08:49 PM
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


1 Answer, 1 is accepted

Sort by
0
Christopher Wooten
Top achievements
Rank 1
answered on 12 May 2010, 01:56 PM
I found the problem.  I had assigned a CSSClass to the items.  This was preventing the Form Decorator from skinning it.
Tags
FormDecorator
Asked by
Christopher Wooten
Top achievements
Rank 1
Answers by
Christopher Wooten
Top achievements
Rank 1
Share this question
or