RadSpreadsheetFormulaBar Visibility NullReferenceException

3 posts, 1 answers
  1. Anthony
    Anthony avatar
    58 posts
    Member since:
    Aug 2011

    Posted 17 Jul 2014 Link to this post

    Hi,

    If I try and set the Visibility of a RadSpreadsheetFormulaBar to Collapsed a NullReferenceException occurs.

    See below for stack trace.

    Thanks
    Anthony

    ​System.NullReferenceException was unhandled
      HResult=-2147467261
      Message=Object reference not set to an instance of an object.
      Source=Telerik.Windows.Controls.Spreadsheet
      StackTrace:
           at Telerik.Windows.Controls.Spreadsheet.Controls.RadSpreadsheetFormulaBar.SetFormulaBarTextBoxText(String text, Int32 caretPosition)
           at Telerik.Windows.Controls.Spreadsheet.Controls.RadSpreadsheetFormulaBar.UpdateFormulaBarTextFromSelectedCell()
           at Telerik.Windows.Controls.Spreadsheet.Controls.RadSpreadsheetFormulaBar.InitializeWorksheetEditor()
           at Telerik.Windows.Controls.Spreadsheet.Controls.RadSpreadsheetFormulaBar.OnRadSpreadsheetPropertyChangedOverride()
           at Telerik.Windows.Controls.Spreadsheet.Controls.Core.RadSpreadsheetAttachedControlBase.OnRadSpreadsheetPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
           at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
           at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
           at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
           at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
           at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
           at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
           at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
           at System.Windows.Data.BindingExpression.Activate(Object item)
           at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
           at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
           at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
           at MS.Internal.Data.DataBindEngine.Run(Object arg)
           at MS.Internal.Data.DataBindEngine.OnLayoutUpdated(Object sender, EventArgs e)
           at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
           at System.Windows.ContextLayoutManager.UpdateLayout()
           at System.Windows.Interop.HwndSource.SetLayoutSize()
           at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
           at System.Windows.Window.SetRootVisualAndUpdateSTC()
           at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
           at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
           at System.Windows.Window.ShowHelper(Object booleanBox)
           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.DispatcherOperation.InvokeImpl()
           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           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, Int32 numArgs)
           at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
           at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(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.Application.RunInternal(Window window)
           at System.Windows.Application.Run()
           at CustomFunctions.App.Main() in c:\Temp\xaml-sdk-master\xaml-sdk-master\Spreadsheet\CustomFunctions\obj\Debug\App_WPF.g.cs:line 0
           at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
           at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()
      InnerException:
  2. Answer
    Nikolay Demirev
    Admin
    Nikolay Demirev avatar
    103 posts

    Posted 17 Jul 2014 Link to this post

    Hello Anthony,

    We have managed to reproduce the issue and to fix it. The fix will be available for download with the next internal build. As a token of our appreciation for reporting this I am updating your Telerik points.

    Regards,
    Nikolay Demirev
    T-elerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Anthony
    Anthony avatar
    58 posts
    Member since:
    Aug 2011

    Posted 31 Jul 2014 in reply to Nikolay Demirev Link to this post

    Hi,

    I tested this with the latest build at it works now.

    Thanks
    Anthony
Back to Top