I previously had code to hide my subreports if they are empty. This code gets an warning now.
'Public ReadOnly Property ChildElements As Telerik.Reporting.Processing.ProcessingElement.ElementCollection' is obsolete: 'The Telerik.Reporting.Processing.ProcessingElement.ChildElements property is now obsolete. Use Telerik.Reporting.Processing.ElementTreeHelper.GetChildElements() method instead.'
I have looked into the GetChildElements information, but I cannot convert this code properly to remove the warnings. What is the new way of doing this?
'Public ReadOnly Property ChildElements As Telerik.Reporting.Processing.ProcessingElement.ElementCollection' is obsolete: 'The Telerik.Reporting.Processing.ProcessingElement.ChildElements property is now obsolete. Use Telerik.Reporting.Processing.ElementTreeHelper.GetChildElements() method instead.'
Private Sub subFilesAttached_ItemDataBound(ByVal sender As Object, ByVal e As EventArgs) _ Handles subFilesAttached.ItemDataBound Dim subReport As SubReport = sender Dim report As Processing.Report = subReport.InnerReport subReport.Visible = report.ChildElements.Find("detail", True).Length > 0End Sub