or
telerikGrid:RadGridViewCommands.CancelRowEdit" ortelerikGrid:RadGridViewCommands.CommitEdit"<telerik:RadButton Width="Auto" Content="save changes" Margin="0,0,5,0" Command="telerikGrid:RadGridViewCommands.CommitEdit" CommandTarget="{Binding ElementName=VerbindungenRADGRID}" Padding="5"/> <telerik:RadButton Width="Auto" Content="undo changes" Command="telerikGrid:RadGridViewCommands.CancelRowEdit" CommandTarget="{Binding ElementName=VerbindungenRADGRID}" Padding="5"/>Hi,
I need to build a vertical bar chart that needs to be refreshed every second.
See attached file to check what I got until now.
The RadChart is bound to a Queue<int> that is refreshed every second.
The problem is that the BarSeries doesn’t get updated.
I manage to force it to be updated by calling RadChar.Rebind() method.
But it redraw the BarSeries instead of updating it.
Could you help me on this?
Thanks,
Hugo.
| <telerik:RadGridView x:Name="GridView" |
| ItemsSource="{Binding DataContext.ObservDistributions, ElementName=DistributionView}" |
| AutoGenerateColumns="False" |
| CanUserFreezeColumns="False" |
| acb:CommandBehavior.Event="MouseDoubleClick" |
| acb:CommandBehavior.Command="{Binding SelectCurrentDistributionCommand}" |
| acb:CommandBehavior.CommandParameter="{Binding ElementName=GridView, Path=SelectedItem}"> |
| <telerik:RadGridView.Columns> |
| <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" IsReadOnly="True" /> |
| <column:DateTimePickerColumn Header="Date" DataMemberBinding="{Binding DateFrom}" Width="200"></column:DateTimePickerColumn> |
| <telerik:GridViewComboBoxColumn Header="Establishment" ItemsSource="{Binding DataContext.Establishments, ElementName=DistributionView}" SelectedValueMemberPath="EstablishmentId" DisplayMemberPath="Name" DataMemberBinding="{Binding Establishment.EstablishmentId, Mode=TwoWay}"> |
| </telerik:GridViewComboBoxColumn> |
| </telerik:RadGridView.Columns> |
| </telerik:RadGridView> |
<telerikHTML:HtmlDataProvider Name="dp1" Html="{Binding TaskText, Mode=TwoWay}" RichTextBox="{Binding ElementName=TaskEditor}" /><telerik:RadRichTextBox x:Name="TaskEditor" Grid.Row="1" Grid.Column="1" Margin="0,5,0,5" AllowDrop="True" ShowComments="True" IsSelectionMiniToolBarEnabled="false" LayoutMode="Flow" DocumentInheritsDefaultStyleSettings="True" GotFocus="EditorGotFocus" LostFocus="EditorLostFocus"/>private void EditorGotFocus(object sender, RoutedEventArgs e) { _lastDataContext = _contextualTabView.DataContext; _contextualTabView.DataContext = TaskEditor.Commands; _lastTab = _ribbonView.SelectedTab; _contextualGroup.IsActive = true; } private void EditorLostFocus(object sender, RoutedEventArgs e) { _contextualGroup.IsActive = false; _lastTab.IsSelected = true; _contextualTabView.DataContext = _lastDataContext; }private void EditorPreviewEditorKeyDown(object sender, PreviewEditorKeyEventArgs e) {var word = radRichTextBox.Document.CaretPosition.GetCurrentWord();