Hey,
We have a Grid with a few columns that we want to filter with the unique values from the field. We are using a FilterTemplate to do it (based on example from Telerik). The filtering is working fine, but when we are trying to export to PDF we are getting this error:
Unable to cast object of type 'Telerik.Web.Apoc.Layout.BlockArea' to type 'Telerik.Web.Apoc.Layout.AreaContainer'
Also, when exporting to excel you can see the attached screenshot from the output file.
This is the FilterTemplate content:
<FilterTemplate>
<telerik:RadComboBox ID="cboStatus1" DataSourceID="sdsStatus" DataTextField="STATUSDESCRIPTION"
DataValueField="STATUSDESCRIPTION" Height="100px"
AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("STATUSDESCRIPTION").CurrentFilterValue %>'
runat="server" OnClientSelectedIndexChanged="Assessment_StatusIndex"
Skin="Metro">
<Items>
<telerik:RadComboBoxItem Text="All" />
</Items>
</telerik:RadComboBox>
<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
<script type="text/javascript">
function Assessment_StatusIndex(sender, args) {
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
tableView.filter("STATUSDESCRIPTION", args.get_item().get_value(), "EqualTo");
}
</script>
</telerik:RadScriptBlock>
</FilterTemplate>
Thanks,
Mano