How to get new item on typing

Hi,
How do I get the string (on my model) that I type in box if not included in itemssource?

I use:

            <sync:SfTextBoxExt AutoCompleteSource="{x:Bind Main.Nominativi}"
                               Grid.Row="3"
                               Margin="0,5,0,0"
                               Grid.Column="1"
                               SuggestionMode="ContainsOrdinal"
                               NoResultsFoundText="Nessun risultato trovato"
                               SearchItemPath="Nome"
                               ShowSuggestionsOnFocus="True"
                               AutoCompleteMode="SuggestAppend"
                               ValueMemberPath="Nome"
                               SelectedValue="{x:Bind Main.Nominativo,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />

Sorry for my english.

Regards

3 Replies

MK Muneesh Kumar G Syncfusion Team October 22, 2018 11:22 AM UTC

Hi Fabio, 
 
Query: “How to get new item on Typing” 
 
Greetings from Syncfusion. This can be achieved by using a Text property. In that we can get new item when typing. 
 
Code snippet  
<StackPanel> 
            <editors:SfTextBoxExt HorizontalAlignment="Stretch" Height="50" Width="400" VerticalAlignment="Stretch"  AutoCompleteSource="{Binding Employees}"                              
                               Margin="0,5,0,0" 
                               Grid.Column="1" 
                               SuggestionMode="ContainsOrdinal" 
                               NoResultsFoundText="Nessun risultato trovato"                              
                               SearchItemPath="Name" 
                               ShowSuggestionsOnFocus="True" 
                               AutoCompleteMode="SuggestAppend" 
                               
                              Text="{Binding Textproperty,Mode=TwoWay}"/> 
 
            <TextBox Text="{Binding Textproperty,Mode=TwoWay}"/> 
        </StackPanel> 
 
 
 
In this sample we have Bind the value of the Text property in another TextBox, now whatever you can type in the SfTextBoxExt control that will be reflected in this TextBox. 
 
Please check the above sample and let us know if you have any other concern. 
 
Regards, 
Muneesh Kumar G. 



FA Fabio November 7, 2018 08:34 PM UTC

Thenks for your help.

Regards


MK Muneesh Kumar G Syncfusion Team November 8, 2018 04:49 AM UTC

Hi Fabio,  
 
Thanks for the update. Please let us know if you need any further assistance. 
 
Regards,  
Muneesh Kumar G 
 


Loader.
Up arrow icon