Hi!
With "Office2010blue" theme, every time we click the "Summary" symbol to open the Summary Options popup, an error occurs:
"Object reference not set to an instance of an object"
This works fine without any theme applied, which leads me to a bug in the Theme file.
Is there a fix?
Hello ruidias,
Could you please tell us which version of SL LOB controls are you using in your application. If you tell us the build number, it would be really helpful to identify the issue sooner! Thank you in advance!
Regards,
Nikola.
Our version of xamGrid is: 11.1.20111.2054
Runtime Version: v2.0.50727
UPDATE: I also notice that with IGTheme works fine!
Do you also want to view the Exception call stack?
Hello again I have spent some time trying to reproduce that problem with the Office2010 Theme, but i couldn't! I might be not performing the same steps that introduce that issue! Would you mind attaching a project, where that problem is reproducible? Thank you in advance!
Our project is to large to send you a small sample, so, i tried to build a small project and tried to reproduce the problem, but... it worked fine in this new project...
So, I've tried to add some customization, and it also worked.
The most strange is that without any style or with IgBlack style, it works without any error. The error message is showing up only with Office2010Blue theme.
I'll copy-paste the StackTrace so you can (maybe) figure out where the problem is, and help me fix this, ok?
Object reference not set to an instance of an object.
in Infragistics.Controls.Grids.Primitives.HeaderDropDownControl.InvalidateElementOutofPopup()
in Infragistics.Controls.Grids.Primitives.HeaderDropDownControl.IsOpenChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
in System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
in System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
in System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
in System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
in Infragistics.Controls.Grids.Primitives.HeaderDropDownControl.set_IsOpen(Boolean value)
in Infragistics.Controls.Grids.Primitives.TogglePopupCommand.Execute(Object parameter)
in Infragistics.Controls.CommandSource.Execute(ICommandTarget target, Boolean canExecute)
in Infragistics.Controls.CommandSource.LookForCommandTarget(FrameworkElement parent, Boolean execute, ICommand command)
in Infragistics.Controls.CommandSource.InvokeCommand(Boolean execute)
in Infragistics.Controls.CommandSource.EventFired(Object sender, EventArgs e)
in System.Windows.Controls.Primitives.ButtonBase.OnClick()
in System.Windows.Controls.Button.OnClick()
in System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
in System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
in MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
I figure it out...
It seems i was using an old version of the Theme (2010.3)
I replace it with a more recent file (2011.1), and now it works fine.
Sorry for all the inconvenience..