or
private void grdCash_RowEditEnded(object sender, GridViewRowEditEndedEventArgs e) { this.grdCash.KeyboardCommandProvider = new DefaultKeyboardCommandProvider(this.grdCash); if (e.EditAction == GridViewEditAction.Cancel) { return; } else { //Update the entry in the view model if (DataContext is BatchCashViewModel) { _batchCashViewModel.UpdateBatchCashRecordCommand.Execute(e.NewData); if (e.Row is GridViewNewRow) { try { this.grdCash.ScrollIntoViewAsync(this.grdCash.Items[this.grdCash.Items.Count - 1], //the row this.grdCash.Columns[1], //the column new Action<FrameworkElement>((f) => { (f as GridViewRow).IsSelected = true; // the callback method })); } catch (Exception ex) { } } } } }private VirtualQueryableCollectionView _dataSource;public VirtualQueryableCollectionView DataSource{ get { if (_dataSource == null) { _dataSource = new VirtualQueryableCollectionView(Manager.GetAll().AsQueryable() .OrderBy(ExpressionHelper.CreateOrderByExpression<T>(DisplayName))) { LoadSize = 20, VirtualItemCount = _manager.GetCount(), }; //_dataSource.ItemsLoading += ItemsLoading; //_dataSource.ItemsLoaded += ItemsLoaded; } return _dataSource; } set { if (Equals(_dataSource, value)) return; _dataSource = value; OnPropertyChanged("DataSource"); }}
2. I used GridViewDataColumn.CellEditTemplate with below
<telerik:GridViewDataColumn Header="{common:Translate RetailChain}"
x:Name="Test"
DataMemberBinding="{Binding BuyingOrganization.BO_CompanyName}">
<telerik:GridViewDataColumn.CellEditTemplate>
<DataTemplate>
<telerik:RadComboBox ToolTip="{common:Translate RetailChain_TT}"
SelectedValue="{Binding BuyingOrganization}"
ItemsSource="{Binding Source={StaticResource GlobalDataManager},Path= BuyingOrganizations.DataSource}"
DisplayMemberPath="{Binding Source={StaticResource GlobalDataManager},Path= BuyingOrganizations.DisplayName}" />
</DataTemplate>
</telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>

<telerik:RadGridView VerticalAlignment="Stretch" AutoGenerateColumns="False" DataMember="ClientNumber" x:Name="grdClients" d:DataContext="{d:DesignData Source=/SampleData/ASISelectClientSampleCollection.xaml}" IsReadOnly="True" ShowColumnHeaders="False" ShowGroupPanel="False" RowIndicatorVisibility="Collapsed" IsFilteringAllowed="False" AutoExpandGroups="True" FontSize="16" SelectionChanged="grdClients_SelectionChanged" ItemsSource="{Binding}" HorizontalAlignment="Left" MouseDoubleClick="grdClients_MouseDoubleClick" > <telerik:RadGridView.Columns> <telerik:GridViewDataColumn UniqueName="ClientNumber"> <telerik:GridViewColumn.ToolTipTemplate> <DataTemplate> <TextBlock Text="Client Number" /> </DataTemplate> </telerik:GridViewColumn.ToolTipTemplate> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn UniqueName="LastName"> <telerik:GridViewColumn.ToolTipTemplate> <DataTemplate> <TextBlock Text="Last Name" /> </DataTemplate> </telerik:GridViewColumn.ToolTipTemplate> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn UniqueName="FirstNames"> <telerik:GridViewColumn.ToolTipTemplate> <DataTemplate> <TextBlock Text="First Name" /> </DataTemplate> </telerik:GridViewColumn.ToolTipTemplate> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn UniqueName="CaseNumber"> <telerik:GridViewColumn.ToolTipTemplate> <DataTemplate> <TextBlock Text="Case Number" /> </DataTemplate> </telerik:GridViewColumn.ToolTipTemplate> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn UniqueName="DateOfBirth" DataFormatString="{}{0:d}"> <telerik:GridViewColumn.ToolTipTemplate> <DataTemplate> <TextBlock Text="DOB" /> </DataTemplate> </telerik:GridViewColumn.ToolTipTemplate> </telerik:GridViewDataColumn> <telerik:GridViewDataColumn UniqueName="InterviewDate" DataFormatString="{}{0:d}"> <telerik:GridViewColumn.ToolTipTemplate> <DataTemplate> <TextBlock Text="Interview Date" /> </DataTemplate> </telerik:GridViewColumn.ToolTipTemplate> </telerik:GridViewDataColumn> </telerik:RadGridView.Columns> <telerik:RadGridView.SortDescriptors> <telerik:SortDescriptor Member="LastName" SortDirection="Ascending" /> <telerik:SortDescriptor Member="FirstNames" SortDirection="Ascending" /> <telerik:SortDescriptor Member="CaseNumber" SortDirection="Descending" /> </telerik:RadGridView.SortDescriptors> <telerik:RadGridView.GroupDescriptors> <telerik:GroupDescriptor Member="ClientNumber"> </telerik:GroupDescriptor> </telerik:RadGridView.GroupDescriptors> <telerik:RadGridView.GroupHeaderTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal" MinWidth="180"> <TextBlock Text="{Binding Group.Items[0].LastName}" /> <TextBlock Text=", " /> <TextBlock Text="{Binding Group.Items[0].FirstNames}" /> </StackPanel> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Group.Items[0].SocialSecurityNo}" FontWeight="Bold" /> </StackPanel> </StackPanel> </DataTemplate> </telerik:RadGridView.GroupHeaderTemplate></telerik:RadGridView>Axis AxisTemperatureVal = new Axis() { AxisType = AxisType.Y, Title = "Temperature [°C]", Name = "Temperature", IsDependent = false, Position = AxisPosition.Far, MajorGridStrokeThickness = 0, MinorTickThickness = 0, Min = 0,};MainPage.Chart.ChartType = C1.WPF.C1Chart.ChartType.Line;MainPage.Chart.View.Axes.Add(AxisTemperatureVal);MainPage.Chart.View.AxisY.Min = 0;MainPage.Chart.View.AxisY.Max = 100;MainPage.Chart.View.AxisX.Title = "Time";MainPage.Chart.View.AxisX.IsTime = true;galleryCollection.Items.Add(new GalleryItem(geometryWrapper.Name, GetShape(geometryWrapper)));
galleryList.Add(new GalleryWrapper(galleryCollection));
GallerySource = new ObservableCollection<GalleryWrapper>(galleryList);private RadDiagramShapeBase GetShape(GeometryWrapper wrapper)
{
string data = wrapper.Data;
Path shapePath = (Path)XamlReader.Parse(data);
RadDiagramShape shape = new RadDiagramShape { Geometry = shapePath.Data, Name = wrapper.Name.Replace(" ", "_") + "Shape" };
return shape;
}<Path xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Stroke='Black' StrokeThickness='1' Fill='#CCCCFF'>
<Path.Data>
<CombinedGeometry GeometryCombineMode='Exclude'>
<CombinedGeometry.Geometry1>
<EllipseGeometry RadiusX='50' RadiusY='50' Center='75,75' />
</CombinedGeometry.Geometry1>
<CombinedGeometry.Geometry2>
<EllipseGeometry RadiusX='50' RadiusY='50' Center='125,75' />
</CombinedGeometry.Geometry2>
</CombinedGeometry>
</Path.Data>
</Path><Path xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Name='starPath' Fill='Gray' Data='M 9,0 L 7,6 L 0,6 L 6,11 L 4,17 L 9,12 L 14,17 L 12,11 L 18,6 L 11,6 L 9,0'>
<Path.LayoutTransform>
<ScaleTransform ScaleX='0.8' ScaleY='0.8' />
</Path.LayoutTransform>
</Path><Path xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Stroke='Black' StrokeThickness='1'>
<Path.Data>
<PathGeometry>
<PathGeometry.Figures>
<PathFigureCollection>
<PathFigure StartPoint='10,100'>
<PathFigure.Segments>
<PathSegmentCollection>
<QuadraticBezierSegment Point1='200,200' Point2='300,100' />
</PathSegmentCollection>
</PathFigure.Segments>
</PathFigure>
</PathFigureCollection>
</PathGeometry.Figures>
</PathGeometry>
</Path.Data>
</Path><Path xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Stroke="Black" StrokeThickness="3" Fill="Blue">
<Path.Data>
<GeometryGroup>
<LineGeometry StartPoint="20,200" EndPoint="300,200" />
<EllipseGeometry Center="80,150" RadiusX="50" RadiusY="50" />
<RectangleGeometry Rect="80,167 150 30"/>
</GeometryGroup>
</Path.Data>
</Path><Path xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Data="M 100,200 C 100,25 400,350 400,175 H 280"/><Path xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' Stroke='Black' StrokeThickness='1' Fill='#CCCCFF'>
<Path.Data>
<CombinedGeometry GeometryCombineMode="Union">
<CombinedGeometry.Geometry1>
<EllipseGeometry RadiusX="50" RadiusY="50" Center="75,75" />
</CombinedGeometry.Geometry1>
<CombinedGeometry.Geometry2>
<EllipseGeometry RadiusX="50" RadiusY="50" Center="125,75" />
</CombinedGeometry.Geometry2>
</CombinedGeometry>
</Path.Data>
</Path><telerik:RadDiagramToolbox Grid.Column="1" Grid.RowSpan="2" Name="tbxGallery" Header="{Binding RelativeSource={RelativeSource Self}, Path=SelectedItem.Header}" Background="#FFE82A2A" HeaderBackground="#FFE82A2A" ItemTemplate="{StaticResource ToolboxTemplate}" ItemsSource="{Binding GallerySource}"
Title="Галерея" Width="300" /> at Telerik.Windows.Controls.Diagrams.GeometryParser.ParseBack(PathGeometry geometry) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Diagrams\Utilities\GeometryParser.cs:line 128
at Telerik.Windows.Controls.Diagrams.GeometryParser.GetString(Geometry geometry) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Diagrams\Utilities\GeometryParser.cs:line 32
at Telerik.Windows.Controls.RadDiagramShape.Serialize() in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Diagrams\Visuals\RadDiagramShape.cs:line 65
at Telerik.Windows.Diagrams.Core.SerializationService.SerializeShapes(IEnumerable`1 shapes) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Core\Services\SerializationService.cs:line 315
at Telerik.Windows.Diagrams.Core.SerializationService.SerializeItems(IEnumerable`1 items) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Core\Services\SerializationService.cs:line 261
at Telerik.Windows.Controls.Diagrams.Extensions.ToolboxDragService.OnDragInitialized(Object sender, DragInitializeEventArgs args) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Diagrams\Extensions\Toolbox\ToolboxDragService.cs:line 33
at Telerik.Windows.DragDrop.DragInitializeEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializeEventArgs.cs:line 103
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)<br> at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at Telerik.Windows.DragDrop.DragInitializer.StartDrag() in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializer.cs:line 285
at Telerik.Windows.DragDrop.DragInitializer.StartDragPrivate(UIElement sender) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializer.cs:line 246
at Telerik.Windows.DragDrop.DragInitializer.DragSourceOnMouseMove(Object sender, MouseEventArgs e) in c:\TB\135\WPF_Scrum\Release_WPF\Sources\Development\Core\Controls\DragDropManager\DragInitializer.cs:line 196
at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at Neolant.ND_Platform.WpfClient.App.Main() in D:\Projects\ProductionPlatform\ND_Platform\ND_Platform\Neolant.ND_Platform.WpfClient\obj\x86\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()