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

How can I remove Radgrid footer formatting to my table.

2 Answers 341 Views
Grid
This is a migrated thread and some comments may be shown as answers.
J S
Top achievements
Rank 1
J S asked on 20 May 2016, 11:11 PM

I have a table in my Radgrid footer.  Looks like the <td> top-border has been added to my table.  not sure but i think it is inheriting it from .rgFooter but I can't that class in my css file.

Attached a pic of my results and my table.  Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 25 May 2016, 02:40 PM
Hello,

Some built-in skins are setting the border style for TD elements in the footer and it could interfere with the styles of nested TABLE elements. However, you could add custom CSS class to your table and use the following styles to remove the borders:
<style>
    div.RadGrid .footerTable td{
        border: none;
    }
</style>
 
   <telerik:RadGrid runat="server" ID="RadGrid1" OnNeedDataSource="RadGrid1_NeedDataSource" Skin="Material" ShowFooter="true">
       <MasterTableView>
           <Columns>
               <telerik:GridTemplateColumn>
                   <FooterTemplate>
                       <table class="footerTable">
                           <tr>
                               <td>test</td><td>test</td>
                           </tr>
                           <tr>
                               <td>test</td><td>test</td>
                           </tr>
                       </table>
                   </FooterTemplate>
               </telerik:GridTemplateColumn>
           </Columns>
       </MasterTableView>
   </telerik:RadGrid>

Hope this helps.


Regards,
Konstantin Dikov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
J S
Top achievements
Rank 1
answered on 25 May 2016, 03:17 PM
That worked.  Thank you for your help.
Tags
Grid
Asked by
J S
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
J S
Top achievements
Rank 1
Share this question
or