If I put the following in the ASPX: <MasterTableView FilterExpression="([Active] = True)"> and put the CurrentFilterFunction="EqualTo" and CurrentFilterValue="True" on the GridBoundColumn Named Active The filter is set but does not filter the records.
If I put this in the codebehind on the NeedDataSource Method:
I get the following error on page load:
Exception Details: Telerik.Web.UI.ParseException: Expression expected
What am I missing here? Active is a boolean datatype.
If I put this in the codebehind on the NeedDataSource Method:
protected
void
rgManage_NeedDataSource(
object
source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
rgManage.DataSource = GetDataSet();
if
(!Page.IsPostBack)
{
rgManage.MasterTableView.FilterExpression =
"([Active] = True)"
;
GridColumn column = rgManage.MasterTableView.GetColumnSafe(
"Active"
);
column.CurrentFilterFunction = GridKnownFunction.EqualTo;
column.CurrentFilterValue =
"True"
;
}
}
I get the following error on page load:
Expression expected
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: Telerik.Web.UI.ParseException: Expression expected
What am I missing here? Active is a boolean datatype.