Hi,
Using 9.2.20092.2014, .NET 3.5
I've run into an issue using the WebDropDown control that seems to be random, but also occurs frequently enough that it is problematic for end-users.
I have a WebDropDown on a UltraWebTab pane with a variety of other controls. The user provides their input on the various tab panes, and submits the page for postback.
Occasionally and with no discernable pattern, the postback results in an "object reference not set to an instance of an object" exception with the following stack trace:
at Infragistics.Web.UI.ListControls.WebDropDown.get_SelectedValue()
So it appears that the crash is occuring when I try to access the SelectedValue property of the control.
I realize this is difficult since it is not readily reproducible, but if someone could tell me what the control is doing when I access the SelectedValue property, I might be able to figure out the root cause.
Any idea what would cause a Null Reference Exception to be thrown by the control when you access the SelectedValue property???
Hello,
How about accessing the SelectedItem property of the control? When accessing this property does this give you the same exception message? What other controls are you using besides the WebDropDown and UltraWebTab? If you can submit the aspx markup that is using the controls then we can take a look at the scenario.
Let me know if you have any questions with this matter.
Sincerely,Duane HoytDeveloper Support Engineer, MCTSInfragisticshttp://es.infragistics.com/support
Thanks Duane.
From my investigation and exception trapping it appears that the Items collection of the control is empty (Count = 0) when this happens. The SelectItemIndex is >= 0 however, which results in the exception being thrown.