I have a TreeList that contains a grid of values and I want to display a single footer at the end of the TreeList for showing the column totals for all columns that have a
Note that the TreeList footers on Telerik's website have multiple levels for each hierarchy level. I would like to hide the footers doing something like this, but it's not working:
Note that
FooterTemplate.
Note that the TreeList footers on Telerik's website have multiple levels for each hierarchy level. I would like to hide the footers doing something like this, but it's not working:
protected void rtlRshItems_ItemDatabound(object sender, TreeListItemDataBoundEventArgs e)
{
TreeListDataItem item = e.Item as TreeListDataItem;
if (e.Item is TreeListDataItem)
{
var workItemId = (int) item.GetDataKeyValue("WorkItemId");
parentId = GetParentId(workItemId);
if (parentId == null)
item.OwnerTreeList.ShowFooter = true;
else
item.OwnerTreeList.ShowFooter = false;
}
}
Note that
GetParentId()
returns null
if there is no parent for the current item, meaning that I want to show a footer for that level only.