or
| System.NullReferenceException was unhandled |
| Message="Object reference not set to an instance of an object." |
| Source="Telerik.Windows.Controls.GridView" |
| StackTrace: |
| at Telerik.Windows.Controls.GridView.GridViewCellsPanel.ArrangeChild(UIElement child, Int32 displayIndex, ArrangeState arrangeState) in c:\Builds\WPF_Scrum\GridView_WPF\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 1599 |
| at Telerik.Windows.Controls.GridView.GridViewCellsPanel.ArrangeOverride(Size arrangeSize) in c:\Builds\WPF_Scrum\GridView_WPF\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 1536 |
| at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect) |
| at System.Windows.UIElement.Arrange(Rect finalRect) |
| at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize) |
| at System.Windows.Controls.ItemsPresenter.ArrangeOverride(Size arrangeSize) |
| at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect) |
| at System.Windows.UIElement.Arrange(Rect finalRect) |
| at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize) |
| at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect) |
| at System.Windows.UIElement.Arrange(Rect finalRect) |
| at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds) |
| at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect) |
| at System.Windows.UIElement.Arrange(Rect finalRect) |
| at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize) |
| at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect) |
| at System.Windows.UIElement.Arrange(Rect finalRect) |
| at System.Windows.ContextLayoutManager.UpdateLayout() |
| at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) |
| at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork() |
| at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() |
| at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) |
| at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) |
| at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) |
| at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) |
| at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) |
| at System.Windows.Threading.DispatcherOperation.InvokeImpl() |
| at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) |
| at System.Threading.ExecutionContext.runTryCode(Object userData) |
| at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) |
| at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) |
| at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) |
| at System.Windows.Threading.DispatcherOperation.Invoke() |
| at System.Windows.Threading.Dispatcher.ProcessQueue() |
| at System.Windows.Threading.Dispatcher.WndProcHook(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, Boolean isSingleParameter) |
| at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) |
| at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) |
| at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) |
| at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) |
| 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.Threading.Dispatcher.Run() |
| 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 Tracker.App.Main() in C:\_projects\R2C\Tracker\Tracker\obj\Debug\App.g.cs:line 0 |
| at System.AppDomain._nExecuteAssembly(Assembly 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) |
| at System.Threading.ThreadHelper.ThreadStart() |
| InnerException: |
ItemCoerce function
the Items.CollectionView is null so it doesn't seceed with the IndexOf
and nothing is selected
now it all happens because the Items.CollectionView is null
i also tried to set the ItemSource & DataContext Before the assigment of selectedItem
but it didn't helped
what should i do to make it work?
thanks
Can I adjust RadDocking so that I would be able to place RadPane into one (tabbed) or a few RadPaneGroups, but within the same DocumentHost?
For example:
write:
| <telerik:RadGridView x:Name="radGridView1" IsReadOnly="True" Grid.Column="1" Grid.Row="1" Margin="0,0,0,5" Grid.RowSpan="3"> |
| <telerik:RadGridView.Columns> |
| <telerik:GridViewDataColumn Header="Mesa" DataMemberBinding="{Binding mesa}"> |
| <telerik:GridViewColumn.AggregateFunctions> |
| <telerik:CountFunction Caption="# Registros encontrados: " /> |
| </telerik:GridViewColumn.AggregateFunctions> |
| </telerik:GridViewDataColumn> |
| <telerik:GridViewDataColumn x:Name="efectivo" Header="efectivo" DataMemberBinding="{Binding efectivo}"> |
| <telerik:GridViewColumn.AggregateFunctions> |
| <telerik:SumFunction Caption="Total: " /> |
| </telerik:GridViewColumn.AggregateFunctions> |
| </telerik:GridViewDataColumn> |
| ArrayList listaMesas = Oper_SoftCount.consultarFecha(dt); |
| this.radGridView1.ItemsSource = listaMesas; |
| void radTreeView_PreviewSelected(object sender, Telerik.Windows.RadRoutedEventArgs e) |
| { |
| // get a reference to the item that will be selected |
| RadTreeViewItem itemToSelect = e.OriginalSource as RadTreeViewItem; |
| // check item that will be selected |
| if (itemToSelect != null && itemToSelect.Item is B) |
| { |
| e.Handled = true; |
| } |
| } |