Hello!
After converting the project to 8.1 i cant seem to get more than 1 row in the autocomplete list below the control. Is there any fix on this? I can see on technet/msdn that this is because MS changed how to API's are working in 8.1 vs 8.0
3 Answers, 1 is accepted
Hi Eirik,
Thank you for the question.
We could not reproduce this issue at our side. I have attached a runnable sample application with a RadAutoCompleteBox control. Could you please verify that the drop down menu suggests more than one item when you run it. If so, could you modify the project to reproduce the issue and we will investigate what causes it.
I an looking forward to your reply.
Regards,
Rositsa TopchiyskaTelerik
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Hello!
I can verify that your example works as it should.
I have done more research now, and it seems that when i am setting the controls Itemssource to mye ObservableCollection<CustomClass> and the DisplayMemberPath to one of the fields in the class, it only shows 1 row. But if i instead make a List<string> then it appears correctly.
This is working fine:
var rac = sender as RadAutoCompleteBox;
var l = new List<string>();
int i = 0;
while (i < 1000)
{
l.Add(i.ToString() + " test " + i.ToString());
i++;
}
rac.ItemsSource = l;
This only shows 1 row:
var strErr = "";
try
{
var sv = new ServiceVareinformasjon.ServiceVareinformasjonClient();
var data = await sv.getAktiveVarerAsync();
await sv.CloseAsync();
var tb = sender as Telerik.UI.Xaml.Controls.Input.RadAutoCompleteBox;
tb.ItemsSource = data.ToList();
tb.DisplayMemberPath = "Varenavn";
}
catch (Exception ex)
{
strErr = ex.Message;
}
if (strErr != "")
await new MessageDialog("En feil har skjedd:\n\n" + strErr, "LogiDose").ShowAsync();
Thank you for contacting us.
We have tested the scenario with ObservableCollection of a custom object and it works fine. From the information you have provided we assume that the problem may come from the asynchronous way you get the data:
var data = await sv.getAktiveVarerAsync();Could you please check how many items are contained in the data collection when you set the ItemsSource of the RadAutoCompleteBox? If the collection contains all the items, could you please send us a sample project that reproduces this issue?
I look forward to your reply.
Regards,
Rositsa Topchiyska
Telerik
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.