SelectedItem="{x:Null}" SelectionMode="Single" set on the grid.
Now, we are binding the grid programmatically. But all rows and cells are immediately selected, which is not what I want.
The second issue is that when I finally clear them through filters, when I do select a row, it will only allow me to select one row.
Which is fine, but I can't deselect that row and choose another.
Am I missing something?
Thanks
Travis
IsVisible="False" in xaml file. so I have 2 doubts.. 1)How to export all columns which are bind to grid irrespective of visibility. 2)I have a Ilist which is datasource of gribView.is it possible to export those list to different files ? the following was sample code...using (Stream stream = dialog.OpenFile())Regards Naresh
{
GridViewExportOptions exportOptions = new GridViewExportOptions();
exportOptions.Format = format;
exportOptions.ShowColumnFooters = true;
exportOptions.ShowColumnHeaders = true;
grdView.Export(stream, exportOptions);
}
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);
}
}