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

FooterTemplete is not displaying the controls

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
nagi
Top achievements
Rank 1
nagi asked on 04 Jan 2009, 01:05 PM
Hi telerik,
My requirement in Hierarchy grid(in child grid ) is to place a textbox in one Column ( did the Using ItemTemplete) and place a button in the footer and update all the Text box's information on clicking the footer button. I make use of FooterTemplete but it's not displaying the button in the footer.below is the code written for footertemplete.

CODE:

<

telerik:GridTemplateColumn UniqueName="TitleColumn" ItemStyle-VerticalAlign="Top" Groupable="False" ItemStyle-HorizontalAlign="Center" Reorderable="False" >

 

 

 

<ItemTemplate>

 

 

 

<asp:TextBox runat="server" ID="txtSlideTitle" CssClass="textinput" style="width: 99%" Text='<%#DataBinder.Eval(Container.DataItem, "SubSectionTitle") %>'></asp:TextBox>

 

 

 

</ItemTemplate>

 

 

 

<FooterTemplate>

 

 

 

<

asp:ImageButton ID="imgbtnAdd" runat="server" CommandName="Slide" onMouseOver="this.src = 'images/btn/outline_slide__over.png'"

 

 

 

 

 

onMouseOut="this.src = 'images/btn/outline_slide_add.png'" ImageUrl="images/btn/outline_slide_add.png" ToolTip="Slide Details " OnClick="imgbtnAdd_OnClick" />

 

 

 

 

 

 

</FooterTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 
awaiting for your reply.Thanks in advance.
Nagireddy

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Jan 2009, 10:17 AM
Hi Nagi,

Have you set the ShowFooter property to true? If not try setting it to true and see whether the footer template is displaying the controls.

ASPX:
 <MasterTableView   DataKeyNames="ProductName"   ShowFooter="true" > 
       <Columns> 
            <telerik:GridTemplateColumn HeaderText="TempCol"  > 
              <ItemTemplate> 
                  <asp:Label ID="Label1" runat="server" Text="MyText"></asp:Label> 
              </ItemTemplate> 
              <FooterTemplate> 
                  <asp:Button ID="Button2" runat="server" Text="Button" /> 
              </FooterTemplate> 
............ 
 

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