Good day, I'm doing the below from code behind. Thus far all has been working until I tried to display the Count of records that the Table is show AFTER filters are applied. The count displayed is nowhere near the correct number so I assume I'm doing something incorrectly.
private
void
report1_NeedDataSource(
object
sender, EventArgs e)
{
var query = ExtendedData.GetExtendedAgreements(_db, _ProgramAreaID,
null
);
table1.DataSource = query ToList();
//Setup Column Filters based on Querystring, Proof of concept, to be made Dynamic
//************************
this
.table1.Filters.AddRange(
new
Telerik.Reporting.Filter[] {
new
Telerik.Reporting.Filter(
"=Fields.Province"
, Telerik.Reporting.FilterOperator.Equal,
"Ontario"
)});
int
count = table1.Items.Count();
TotalRecords.Value = Convert.ToString(count);
}