or
<telerik:RadGridView Grid.Row="2" x:Name="orderView" ItemsSource="{Binding Order}" AutoGenerateColumns="False" CanUserDeleteRows="{Binding IsChecked, Mode=TwoWay, ElementName=CanUserDeleteRowsCheckBox}" IsReadOnly="{Binding IsChecked, Mode=TwoWay, ElementName=IsReadOnlyCheckBox}" SelectionMode="Extended"> <telerik:RadGridView.Columns> <telerik:GridViewToggleRowDetailsColumn /> <telerik:GridViewSelectColumn Header="Select" x:Name="chkbox" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding CustomerName}" Header="Name" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding Age}" Header="Age" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=COActivity.ActivityDescription}" Header="Age" /> </telerik:RadGridView.Columns> </telerik:RadGridView> <Button Content=" Delete" Style="{StaticResource GreyButtonStyle}" Command="telerik:RadGridViewCommands.Delete" CommandTarget="{Binding ElementName=gvCustomerOrder}"> <i:Interaction.Triggers> <i:EventTrigger EventName="Click"> <cmd:EventToCommand Command="{Binding Path=DeleteCustomerOrderCommand}" PassEventArgsToCommand="True" /> </i:EventTrigger> </i:Interaction.Triggers> </Button> private RelayCommand<RoutedEventArgs> _deleteCustomerOrderCommand; public RelayCommand<RoutedEventArgs> DeleteCustomerOrderCommand { get { if (_deleteCustomerOrderCommand == null) { _deleteCustomerOrderCommand = new RelayCommand<RoutedEventArgs>(param => this.DeleteCustomerOrder(param), param => this.CanDeleteCustomerOrder()); } return _deleteCustomerOrderCommand; } } private void DeleteCustomerOrder(RoutedEventArgs e) { } private bool CanDeleteCustomerOrder() { string messageBoxText = "Are you sure you want to delete the selected Orders?"; string caption = "Confirm"; MessageBoxButton button = MessageBoxButton.YesNo; MessageBoxImage icon = MessageBoxImage.Question; MessageBoxResult result = MessageBox.Show(messageBoxText, caption, button, icon); if (result == MessageBoxResult.Yes) { return true; } else return false; }Hello,
Is there a MVVM Documentation for best practices with Infragistics WPF? - including the xamDataGrid... :)
Thanks for all answers!
How to build and create dynamic indicator in VB code instead of XML
So the indicator should be change according to my input value
Also I wanna change the range and the scale in VB code to make it more flexible.
in radical and simi gauge
Please let me know how to do that ASAP
Thanks in advance