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

FormTemplate in RadGrid ignores CSS on postback

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gokhan
Top achievements
Rank 1
Gokhan asked on 08 Jun 2014, 12:47 AM
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
 
 
           <telerik:RadGrid ID="radGridBooks" runat="server"
               AutoGenerateColumns="False"
               ShowFooter="True"
               CellSpacing="0"
               GridLines="None"
               Skin="Default"
               OnNeedDataSource="radGridBooks_NeedDataSource">
 
               <MasterTableView CommandItemDisplay="Top" EditMode="PopUp" GridLines="None" TableLayout="Fixed">
 
                   <CommandItemSettings AddNewRecordText="Add New Book" RefreshText="Refresh"></CommandItemSettings>
                   <Columns>
 
                       <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn>
                       <telerik:GridBoundColumn DataField="ID" UniqueName="ID" HeaderText="Book ID"></telerik:GridBoundColumn>
                       <telerik:GridBoundColumn DataField="Name" HeaderText="Book Name">
                           <ColumnValidationSettings EnableRequiredFieldValidation="true" EnableModelErrorMessageValidation="true">
                               <RequiredFieldValidator ForeColor="Red" ErrorMessage="Required"></RequiredFieldValidator>
                           </ColumnValidationSettings>
                       </telerik:GridBoundColumn>
                       <telerik:GridButtonColumn Text="Del" CommandName="DeleteBook" CommandArgument="ID"></telerik:GridButtonColumn>
                   </Columns>
                   <EditFormSettings EditFormType="Template" CaptionDataField="ID" PopUpSettings-ScrollBars="Auto" PopUpSettings-Modal="True" PopUpSettings-ShowCaptionInEditForm="true">
                       <FormTemplate>
                           <table width="100%">
                               <tr>
                                   <td>Try</td>
                               </tr>
                           </table>
                       </FormTemplate>
                   </EditFormSettings>
               </MasterTableView>
               <ClientSettings EnableRowHoverStyle="true">
               </ClientSettings>
           </telerik:RadGrid>
 
       </telerik:RadAjaxPanel>



LOOK THIS PHOTO

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 Jun 2014, 06:21 AM
Hi Gokhan,

I was not able to replicate such an issue at my end. Please try to replicate it with this demo on Form Template Edit Form.

Thanks,
Princy
Tags
Grid
Asked by
Gokhan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or