We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Autocomplete mode causes error when closing window

I am trying to use autocomplete mode for textboxext. Autocomplete works fine but when i close the window on which the textbox is on i get an error:
"System.InvalidOperationException: 'Operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead.'"

I am using "standard" binding to observableCollection in viewmodel:

<sf:SfTextBoxExt HorizontalAlignment="Center"
     VerticalAlignment="Center" Width="150"
                            SearchItemPath="Name"
                            AutoCompleteMode="Suggest"
                            AutoCompleteSource="{Binding AvailableProducts}" />

where could be the problem?

1 Reply

KJ Keerthana Jegannathan Syncfusion Team July 26, 2017 04:51 AM UTC

Hi Tadej, 
 
We considered this issue “InvalidOperationException has been thrown when SfTextBoxExt has got focus” as bug and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates. 
 
 
Regards, 
 
Keerthana J 


Loader.
Up arrow icon