We just upgraded to the latest release of the Report components and are now receiving an error about No Default item for ResultSet when accessing the set.DataObject("fieldname") like below. The datasource is a SQLDataSource and all this worked prior to the upgrade.
Private
Sub
activityTable_NeedDataSource(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
activityTable.NeedDataSource
Dim
tbl
As
Telerik.Reporting.Processing.Table = TryCast(sender, Processing.Table)
Dim
sect
As
Processing.ReportSection = TryCast(Processing.ElementTreeHelper.FindChildByName(tbl.Report,
"ReportHeaderSection1"
,
True
).FirstOrDefault, Processing.ReportSection)
Dim
data
As
Object
= sect.DataObject
Dim
cutoffdate
As
Date
, managedbypartnerid
As
Integer
Dim
totalduetextbox
As
Processing.ProcessingElement = Processing.ElementTreeHelper.GetChildByName(sect,
"payStubAmountDueTextBox"
)
Dim
totaldueaftertextbox
As
Processing.ProcessingElement = Processing.ElementTreeHelper.GetChildByName(sect,
"payStubAmountDueAfterTextBox"
)
Dim
autopaytextbox
As
Processing.ProcessingElement = Processing.ElementTreeHelper.GetChildByName(sect,
"autopaytext"
)
If
data IsNot
Nothing
Then
cutoffdate = data.Item(
"UsageCutOffDate"
)
managedbypartnerid = data.Item(
"ManagedByPartnerId"
)
End
If