Hello Telerik team,
I am dynamically updating my Itemssource as and when the user types the text in the combo-box.
Now, As I read in the forums, there is a bug in telerik combobox thereby, the text gets cleared as and when you update the items source.
Well, I overcame it by storing it in a string and putting that string back after updating my items source( though it's not elegant and cheap style of coding).
Now my issue is Inorder for the user to have smooth continous typing sequence, I need to place my cursor at the end of the "search text" I place,
For e.g. If my search text is "ab" , I find items starting with "ab", update my items source with matching records and then I place
the search text "ab" inside combo-box.
Now I need to place my cursor at the end of "ab" so that the user will have a smooth continuous experience. (At present, the cursor points to the begining of text)
Is there any work-around for it? I would say , you can research the MS auto-complete textbox- you might know what I am saying.
Here is my telerik combobox declaration-
<DataTemplate x:Name="CustomItemTemplate">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding SRCECODE}" Width="50" FontWeight="Bold" />
<TextBlock Text=" - " />
<TextBlock Text="{Binding SRCEDESC}" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Name="SelectionBoxTemplate">
<StackPanel Orientation="Horizontal" >
<TextBlock Text="{Binding SRCECODE}" Width="50" FontWeight="Bold" />
<TextBlock Text=" - " />
<TextBlock Text="{Binding SRCEDESC}" />
</StackPanel>
</DataTemplate>
---------
telerik
:RadComboBox x:Name="cbSource"
SelectedValue="{Binding srceId, Mode=TwoWay}"
SelectedValuePath="SRCEID"
ItemsSource="{Binding Path=Data}" Width="250"
IsEditable="True" StaysOpenOnEdit="True" Visibility="Visible"
ItemTemplate="{StaticResource CustomItemTemplate}" telerik:TextSearch.TextPath="SRCEDESC"
SelectionBoxTemplate="{StaticResource SelectionBoxTemplate}"
CanAutocompleteSelectItems="False"
OpenDropDownOnFocus="True"
>