This is a migrated thread and some comments may be shown as answers.

[Solved] Popup height in 8.1

3 Answers 79 Views
AutoCompleteBox for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eirik
Top achievements
Rank 1
Eirik asked on 26 Nov 2013, 09:31 PM

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

Sort by
0
Rosy Topchiyska
Telerik team
answered on 28 Nov 2013, 01:40 PM

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 Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Eirik
Top achievements
Rank 1
answered on 04 Dec 2013, 10:25 AM

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();



0
Rosy Topchiyska
Telerik team
answered on 05 Dec 2013, 03:22 PM
Hello Eirik,

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.

Tags
AutoCompleteBox for XAML
Asked by
Eirik
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Eirik
Top achievements
Rank 1
Share this question
or