Hi, I have a link in my CommandItemtemplate that I want to hide records that have a value set to false when clicked on
In my onItemCommand I have a command hideVersions as follows
if (e.CommandName == "hideVersions")
{
RG1.MasterTableView.FilterExpression = "([active]=0) ";
GridColumn column = RG1.MasterTableView.GetColumnSafe("active");
column.CurrentFilterFunction = GridKnownFunction.EqualTo;
RG1.MasterTableView.Rebind();
return;
}
The column unique name is "active" and allow filtering is set to true for this column but I need to have AllowFilteringByColumn="false" since I don't want the user to be able to change the filtering. ( i tried it both ways) The database field is a boolean. I tried another text field and anything I put in the FilterExpression gives me the same error. I also tried setting EnableLinqExpressions="false" since im using linq.
when I click the link I get the following error
System.Web.Query.Dynamic.ParseException: Expression expected at RG1.MasterTableView.Rebind();
Any Thoughts?
-Keith
In my onItemCommand I have a command hideVersions as follows
if (e.CommandName == "hideVersions")
{
RG1.MasterTableView.FilterExpression = "([active]=0) ";
GridColumn column = RG1.MasterTableView.GetColumnSafe("active");
column.CurrentFilterFunction = GridKnownFunction.EqualTo;
RG1.MasterTableView.Rebind();
return;
}
The column unique name is "active" and allow filtering is set to true for this column but I need to have AllowFilteringByColumn="false" since I don't want the user to be able to change the filtering. ( i tried it both ways) The database field is a boolean. I tried another text field and anything I put in the FilterExpression gives me the same error. I also tried setting EnableLinqExpressions="false" since im using linq.
when I click the link I get the following error
System.Web.Query.Dynamic.ParseException: Expression expected at RG1.MasterTableView.Rebind();
Any Thoughts?
-Keith