I have a rad grid with a number of templated columns for example...
<telerik:GridTemplateColumn UniqueName="PremiumPartName" HeaderText="Premium Part">
<ItemTemplate>
<asp:HiddenField ID="hdnPremiumPartID" runat="server" />
<asp:HiddenField ID="hdnOriginalITP" runat="server" />
<asp:HiddenField ID="hdnOriginalGross" runat="server" />
<asp:Literal ID="litPremiumPart" runat="server" />
</ItemTemplate>
<FooterTemplate>
<asp:Literal ID="litTotalLabel" runat="server" />
</FooterTemplate>
</telerik:GridTemplateColumn>
I'm binding the values using the item data bound event...
protected void grdAdjustments_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
switch (e.Item.ItemType)
{
case Telerik.Web.UI.GridItemType.AlternatingItem:
case Telerik.Web.UI.GridItemType.Item:
//ItemIndexHierarchical
if (e.Item.ItemIndexHierarchical.Split(':').Length > 1)
{
//details table
BindDetailTableRow(e);
}
else
{
//master table row
BindMasterTableRow(e);
}
break;
case Telerik.Web.UI.GridItemType.NestedView:
break;
case Telerik.Web.UI.GridItemType.Footer:
//bind footer
BindFooterRow(e);
break;
}
}
This works fine when the grid is first bound, however when I try to expand a details table for one of the rows the footer is blank. Any ideas why this might be?
Thanks