private void grdCustomer_RowDetailsVisibilityChanged(object sender, GridViewRowDetailsEventArgs e)
{
e.Row.CommitEdit();
e.Row.IsSelected =
true;
}
This works with Q1 2011, but with Q1 2012, I get the following error
"'NavigatorIndicatorBackground' name cannot be found in the name scope of 'System.Windows.Controls.Border'."
Is there something I need to change to make this work with Q1 2012, or is there a bug? At this point, I will have to stay with Q1 2011 unless I can make this work with 2012.
<telerik:GridViewColumn.AggregateFunctions>
<local:SimCount SourceField="SimPossible" SourceFieldType="{x:Type System:Boolean}" Caption="Candidate Modules : " />
</telerik:GridViewColumn.AggregateFunctions>
The SimCount class is here.
public
class SimCount : Telerik.Windows.Data.EnumerableSelectorAggregateFunction
{
protected override string AggregateMethodName
{
get { return "SimCandidateCount"; }
}
protected override Type ExtensionMethodsType
{
get
{
return typeof(SimCandidateCounter);
}
}
}
public static class SimCandidateCounter
{
public static int SimCandidateCount<TSource>(IEnumerable<TSource> source,Func<TSource,bool> selector )
{
return source.Select(selector).Count(b => b);
}
}


Hi,
It seems a bug in the GridViewBoundColumnBase.CanFilter() of the 2012.1 release.
I'm binding my grid to a collection of ExpandoObjects, and I found that when I set grid.IsFilteringAllowed to true, the FilteringDropDown controls shows up on column headers, but they didn't go hidden when I set grid.IsFilteringAllowed to false.
By looking at the disassembled code, I found that GridViewBoundColumnBase.CanFilter() has been changed to this:
public override bool CanFilter()
{
return (base.CanFilter() || (this.IsBoundToDynamicType() && (this.EffectiveFilteringType != null)));
}
In my case base.CanFilter() is false and this.IsBoundToDynamicType() && (this.EffectiveFilteringType != null)) is always true, which means there's no way for me to simply toggle grid.IsFilteringAllowed to show/hide the filter control.
Jason