Essential Tools ASP.NET
AutoComplete Defaulting to Orientation of Container
September 10, 2011 09:20 AM by Karthick Ravichandran[Syncfusion]
Matthew Ringer
AutoComplete Defaulting to Orientation of Container
August 25, 2011 04:29 PM
Hello I'm having a problem where the AutoComplete Control used in a DataTemplate has it's dropdown default to the orientation of the ItemPanelTemplate. If I set the orientation there it changes the orientation in the AutoComplete.

I have the AutoComplete contained in a StackPanel with the Orientation set to Vertical.

Psudo code follows:

<DataTemplate x:Key="FieldTemplate" DataType="{x:Type MyType}">
<Border>
<ScrollViewer >
<StackPanel Orientation="Vertical">
<syncfusion:AutoComplete Name="myAutoComp"
Source="Custom" IsAutoAppend="True"
IsHistory="False" IsAutoCompleteItem="False"
IsFilter="True" Text="{Binding MyProperty}">
</StackPanel>
</ScrollViewer>
</Border>

<ListBox x:Name="Main" ItemTemplateSelector="{StaticResource DataTemplateSel}">
<ListBox.Resources>
<Style TargetType="{x:Type ListBox}"
BasedOn="{StaticResource {x:Type ListBox}}">
<Setter Property="ItemsPanel">
<Setter.Value>
<ItemPanelTemplate>
<WrapPanel Orientation="Horizontal" />
</ItemPanelTemplate>
</Setter.Value>
</Setter>
</Style
</ListBox.Resources>



Karthick Ravichandran
[Syncfusion]
AutoComplete Defaulting to Orientation of Container
September 10, 2011 09:20 AM
Hi Matthew,

Sorry for the inconvenience caused.

We are unable to reproduce the Orientation of AutoComplete popup issue based on the given pseudo code.Please check the sample under the following location.

Sample Link : http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=F100685_Updown-1844299825.zip

It would be very helpful for us, if provide any sample for this issue along with version details so that we can assist you further.

Please let me know in case of any queries.

Regards,
Karthick


::adCenter::