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

Is there a way to merge footertemplate columns?

1 Answer 180 Views
Grid
This is a migrated thread and some comments may be shown as answers.
thdwlgP
Top achievements
Rank 1
thdwlgP asked on 26 Mar 2009, 06:31 PM
If i have  4 gridtemplatecolumn and a footer
is there a way to merge (like colspan) on just the footer for column 2 and 3?

so i have 3 footer columns?

Thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Mar 2009, 04:20 AM
Hi J,

I would suggest you to replace column2 and column3 with a single GridTemplateColumn. Give a try with the following approach and see if it helps.

ASPX:
 
 
<telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderStyle-Width="300px" > 
      <HeaderTemplate> 
       <table id="Table1" cellSpacing="1" cellPadding="1" width="300" border="1"
        <tr> 
         <td colspan="2" align="center"><b>Common Header</b></td
         
        <tr> 
         <td width="50%"><b>ProductName</b></td
         <td width="50%"><b>SupplierID</b></td
        </tr> 
       </table> 
      </HeaderTemplate> 
      <ItemTemplate> 
       <table id="Table2" cellSpacing="1" cellPadding="1" width="300" border="1"
        <tr> 
         <td width="50%"><%# DataBinder.Eval(Container.DataItem, "ProductName") %></td
         <td width="50%"><%# DataBinder.Eval(Container.DataItem, "SupplierID") %></td
        </tr> 
       </table> 
      </ItemTemplate> 
       
      <FooterTemplate> 
      <table id="Table1" cellSpacing="1" cellPadding="1" width="300" border="1"
         
         <td width="50%" align="center" ><b>Common Footer</b></td
          
        </tr> 
       </table> 
      </FooterTemplate> 
     </telerik:GridTemplateColumn> 


Thanks
Shinu
Tags
Grid
Asked by
thdwlgP
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or