coverflow with an embedded autocomplete textbox

4 posts, 0 answers
  1. Rich
    Rich avatar
    6 posts
    Member since:
    Jul 2010

    Posted 16 Aug 2010 Link to this post

    I currently have a coverflow control with three coverflowitems.  One of my coverflowitems contains an autocomplete textbox from the Silverlight Toolkit.  When I include the autocomplete textbox outside of the coverflow control, the popup for the autocomplete works just fine (e.g., it's positioned below the text input area, is the width text input area, and honors the MaxDropDownHeight property of the autocomplete control).  However, when I include this same exact control in a coverflowitem, the popup displays right on top of the text input area, is only the width of the longest item in the list, and is the height of all viewable items (e.g., MaxDropDownHeight is ignored).

    Has anyone gotten an autocomplete textbox to render correctly inside a coverflow control?  If so, can you send along the code that is working for you?
  2. George
    Admin
    George avatar
    1332 posts

    Posted 18 Aug 2010 Link to this post

    Hello Rich,

    Thank you for contacting us.

    Could you please send us a sample running project that reproduces the problem you have with AutoCompleteBox in RadCoverFlowItem? We tried with a sample project but we weren't able to reproduce it.

    I will be glad to assist you further.

    Regards,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Rich
    Rich avatar
    6 posts
    Member since:
    Jul 2010

    Posted 20 Aug 2010 Link to this post

    Here is some sample code of the user control I'm using....I've tried to boil it down to the basics.  I have an AutoCompleteBox both inside and outside of the RadCoverFlow so you can see the differences.  I'm currently using the Q2 2010 SP1 Telerik Silverlight controls.

    When it's within the control, the popup portion of the AutoCompleteBox loses any notion of where it should display and how it should behave.

    Could you perhaps send along your working sample code that I could compare with my solution (I only sent this snippet since I'm under an NDA with the client and can't share the entire solution).  Thanks!

    XAML:

    <UserControl x:Class="MyUserControl"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
        xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input">

        <Grid x:Name="LayoutRoot">

            <controls:AutoCompleteBox x:Name="txtSearchTerms" Height="38" Width="250" IsTextCompletionEnabled="True" VerticalAlignment="Top" HorizontalAlignment="Left"/>

            <telerik:RadCoverFlow Height="300" BorderThickness="1" BorderBrush="Black" IsReflectionEnabled="False">
                <telerik:RadCoverFlowItem Height="200" BorderThickness="1" BorderBrush="Red">
                    <controls:AutoCompleteBox x:Name="txtSearchTerms2" Height="38" Width="250" IsTextCompletionEnabled="True" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                </telerik:RadCoverFlowItem>
            </telerik:RadCoverFlow>

        </Grid>
    </UserControl>

    C#:

    public partial class MyUserControl : UserControl
    {
            public MyUserControl()
            {
                InitializeComponent();

                List<String> autoCompleteList = new List<String>();
                autoCompleteList.Add("January");
                autoCompleteList.Add("February");
                autoCompleteList.Add("March");
                autoCompleteList.Add("April");
                autoCompleteList.Add("May");
                autoCompleteList.Add("June");
                autoCompleteList.Add("July");
                autoCompleteList.Add("August");
                autoCompleteList.Add("September");
                autoCompleteList.Add("October");
                autoCompleteList.Add("November");
                autoCompleteList.Add("December");

                this.txtSearchTerms.ItemsSource = autoCompleteList;
                this.txtSearchTerms2.ItemsSource = autoCompleteList;
            }
    }
  5. George
    Admin
    George avatar
    1332 posts

    Posted 26 Aug 2010 Link to this post

    Hi Rich,

    Thank you getting back to us.

    I reproduced the issue you have with RadCoverFlow and AutoCompleteBox. We will need some time to investigate the cause of this problem and the fix will be included in one of our future releases. Sorry for any inconvenience caused. You can track this issue in our Public Issue Tracking System (PITS) with ID = 3200.

    For a workaround you could replace AutoCompleteBox with RadComboBox if this suits your needs.

    I hope this helps! Please do not hesitate to contact us if you require any further information.

    All the best,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top