or
<telerik:RadGridView x:Name="uxCustomerGrid" ItemsSource="{Binding Customers,BindsDirectlyToSource=True}" IsReadOnly="True" EnableColumnVirtualization="True" EnableRowVirtualization="true" SelectionMode="Extended" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False" CanUserDeleteRows="False" CanUserInsertRows="False" GridLinesVisibility="None" IsFilteringAllowed="False" ShowGroupPanel="False" RowStyle="{DynamicResource CustomerRowStyle}"><telerik:RadGridView.Columns><telerik:GridViewDataColumn DataMemberBinding="{Binding Kundennummer}" Header="Nummer"/><telerik:GridViewDataColumn DataMemberBinding="{Binding Kundenname}" Header="Name" /><telerik:GridViewDataColumn DataMemberBinding="{Binding Ort.Bezeichnung}" Header="Ort" /><telerik:GridViewDataColumn DataMemberBinding="{Binding Ort.PLZ}" Header="PLZ" IsVisible="False" /><telerik:GridViewDataColumn DataMemberBinding="{Binding Einwohneranzahl}" Header="Einwohner" IsVisible="False" /></telerik:RadGridView.Columns></telerik:RadGridView> private QueryableCollectionView _customers; public QueryableCollectionView Customers { get { return _customers; } set { if (value != _customers) { _customers = value; OnPropertyChanged("Customers"); } } }....this._context = new MiexUnitOfWork();_context.Kunde.ToList();this.Customers = new QueryableCollectionView(_context.Kunde.Local);_context.Entry(_context.Kunde.Find(Key)).Reload()<TabControl x:Name="tabcontrol" MouseDown="MousedownHandled" SelectionChanged="test">private void MousedownHandled(object sender, System.Windows.Input.MouseButtonEventArgs e){ if (tabcontrol.SelectedIndex == 1) e.Handled = true;}private void test(object sender, SelectionChangedEventArgs e){ if (e.OriginalSource == tabcontrol) e.Handled = true;}Public Class ExportData Public Property MyDate As Date Public Property ItemType As String End ClassNow I'd like to get a stacked bar chart that groups the items by month and stacks the count of the different item types. For each month I would have a stacked bar that says for example "Jan 11 = 3 items of type A, 4 items of type B, 5 items of type C".
<telerik:RadChart.SeriesMappings> <telerik:SeriesMapping x:Name="DataMapping" LegendLabel="Sales"> <telerik:SeriesMapping.SeriesDefinition> <telerik:StackedBarSeriesDefinition ShowItemLabels="True" ShowItemToolTips="True" ItemToolTipFormat="#Y"> <telerik:StackedBarSeriesDefinition.InteractivitySettings> <telerik:InteractivitySettings HoverScope="Series" SelectionScope="None" /> </telerik:StackedBarSeriesDefinition.InteractivitySettings> </telerik:StackedBarSeriesDefinition> </telerik:SeriesMapping.SeriesDefinition> <telerik:SeriesMapping.ItemMappings> <telerik:ItemMapping FieldName="ItemType" DataPointMember="YValue" AggregateFunction="Count" /> <telerik:ItemMapping FieldName="MyDate" DataPointMember="XCategory" /> </telerik:SeriesMapping.ItemMappings> <telerik:SeriesMapping.GroupingSettings> <telerik:GroupingSettings StackGroupFieldName="ItemType" ShouldFlattenSeries="True"> <telerik:GroupingSettings.GroupDescriptors> <telerik:ChartYearGroupDescriptor /> <telerik:ChartMonthGroupDescriptor /> <telerik:ChartGroupDescriptor Member="ItemType" /> </telerik:GroupingSettings.GroupDescriptors> </telerik:GroupingSettings> </telerik:SeriesMapping.GroupingSettings> </telerik:SeriesMapping></telerik:RadChart.SeriesMappings>private void SearchTextBox_Search(object sender, RoutedEventArgs e){ int foundCellCount = 0; foreach (object o in ((QueryableCollectionView)theGrid.ItemsSource)) { if (o != null) { Type rowType = o.GetType(); PropertyInfo[] props = rowType.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); foreach (PropertyInfo pi in props) { if (IsVisibleColumn(pi.Name)) { object oCellVal = pi.GetValue(o, null); if ((oCellVal != null) && ((oCellVal.GetType() == typeof(int)) || (oCellVal.GetType() == typeof(string)) || (oCellVal.GetType() == typeof(long)))) { string cellVal = oCellVal.ToString(); if (cellVal.Contains(txtSearch.Text)) { // Match found foundCellCount++; // NEED TO HIGHLIGHT THE CONTAINING CELL HERE!!! } } } } } } if (foundCellCount > 0) { MessageBox.Show(string.Format("Match found in {0} cells", foundCellCount)); } else { MessageBox.Show("Not Found!"); }}We are using RadControls for WPF Q2 2010.
In our project we need to update the RadGridView which contains about 100 or more strokes several times in minute. We set the property “DataLoadMode” of the RadGridView to Asynchronous but updating of the GridView hinder the program to work fast and correctly.
Can you tell us the way to resolve this problem?
<Style TargetType="telerik:RadMaskedNumericInput"> <Setter Property="Margin" Value="2 2 2 2"/> <Setter Property="IsClearButtonVisible" Value="False"/> <Setter Property="TextMode" Value="PlainText"/> <Setter Property="KeyboardNavigation.TabNavigation" Value="Local"/> <Setter Property="Validation.ErrorTemplate"> <Setter.Value> <ControlTemplate> </ControlTemplate> </Setter.Value> </Setter> <Style.Triggers> <Trigger Property="Validation.HasError" Value="true"> <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/> <Setter Property="BorderBrush" Value="Red"/> </Trigger> </Style.Triggers> </Style>