or
public class CustomFilteringControl : Telerik.Windows.Controls.GridView.FilteringControl { public override void Prepare(GridViewBoundColumnBase column) { base.Prepare(column); if (column.DataType == typeof(string)) // Set contains as default only for string data type of the gridview column { FilteringViewModel vm = this.DataContext as FilteringViewModel; if (vm != null) { if (!vm.Filter1.IsActive) { vm.Filter1.Operator = FilterOperator.Contains; } if (!vm.Filter2.IsActive) { vm.Filter2.Operator = FilterOperator.Contains; } } } } }Hello,
I have a RadGridView Control and I can't get it to restore a row after canceling an edit.
For example if I'm editing one cell, then editing another cell in the same row then press ESC twice
I expect both of the cells to return to their previous state because the data source, correctly, isn't changed, but only
the last edited cell is changing.
It does work well however on your sliverlight demos, for example here: http://demos.telerik.com/silverlight/#GridView/Commands
Thanks
private void radTreeView_DoubleClick(object sender, MouseButtonEventArgs e){ e.Handled = true; RadTreeViewItem selectedItem = e.OriginalSource as RadTreeViewItem; LogFile logfile = selectedItem.Item as LogFile; if (logfile != null) { MessageBox.Show("selected is file "); return; } return; }