Hi I have a dropdown and a text box on my page and the dropdown is bound to a List.
Based on another dropdown I make a service call which updates the List of data
This all works well and data is refreshed.
When no items are returned in the list I still set the data source and also set a visible property which the controls are bound to and in cases of no records the text box is displayed. Again this functionality work well but when I go back to selecting data that has something in the list the Combo is populated but when I select an item it doesn't shrink to set the value is stays expanded and freezes. A page refresh is all I can do.
Via debugging I noticed that the Selected Item property often holds onto an item in the previous list so I tried setting this to null to see if it helps but it doesn't cure the problem.
Any ideas for a workaround or another approach: to summarise.
- Call service >> List has items >> visible property set to true >> dropDown is displayed with data
- Call Service >> No Items in List >> visible property is set to false >> Text Box Displayed
- Call Service > List has items >> visible property set to true >> dropdown displayed but freezes when selecting an item.