Click

4 posts, 0 answers
  1. jen
    jen avatar
    63 posts
    Member since:
    Jun 2009

    Posted 22 Nov 2012 Link to this post

    I have an autoComplete box, with a DropDownItemTemplate. I am finding that when the user makes a selection by clicking in the drop down area, whatever is behind the drop down panel gets clicked on as well. For example, if the drop down panel is covering a button, that button gets clicked accidentally. Is there a way to prevent this?


    <telerik:RadAutoCompleteBox Width="150" Margin="3" BorderBrush="DarkGray" BorderThickness="1"

     itemsSource="{Binding ModelNames}" DisplayMemberPath="Description"

     TextSearchMode="Contains" TextSearchPath="ModelName" DropDownPlacement="Control" DropDownWidth="300"

     AutoCompleteMode="Suggest" SelectionMode="Single"

     SelectionChanged="RadAutoCompleteBox_SelectionChanged_1">

     <telerik:RadAutoCompleteBox.DropDownItemTemplate>

    <DataTemplate>

     <Grid>

        <Grid.ColumnDefinitions>

           <ColumnDefinition Width="100"/>

           <ColumnDefinition Width="100"/>

           <ColumnDefinition Width="100"/>

        </Grid.ColumnDefinitions>

        <sdk:Label Grid.Column="0" Margin="3" Content="{Binding ManufacturerName}"/>

        <sdk:Label Grid.Column="1" Margin="3" Content="{Binding MakeName}"/>

        <sdk:Label Grid.Column="2" Margin="3" Content="{Binding ModelName}"/>

     </Grid>

    </DataTemplate>

    </telerik:RadAutoCompleteBox.DropDownItemTemplate>

    </telerik:RadAutoCompleteBox>


     

  2. Alek
    Admin
    Alek avatar
    78 posts

    Posted 27 Nov 2012 Link to this post

    Hello Jen,

    We've created a sample project based over the code you've sent us, but we didn't manage to reproduce the described behavior. Please, take a look at it to check didn't we miss something important. 

    If there is a possibility it will be very helpful to send us a project where the issue emerges.

    All the best, Alek
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. jen
    jen avatar
    63 posts
    Member since:
    Jun 2009

    Posted 27 Nov 2012 Link to this post

    If you replace the buttons with a RadPanelBar with a few RadPanelBarItems, You will see my issue. I used Button as an example above, but the issue is with the RadPanelBarItems. Sorry about that. The click toggles the expansion of the RadPanelBarItems.

                <telerik:RadPanelBar >
                    <telerik:RadPanelBarItem Header="bar 1">
                        <Grid/>
                    </telerik:RadPanelBarItem>
                    <telerik:RadPanelBarItem Header="bar 2">
                        <Grid/>
                    </telerik:RadPanelBarItem>
                    <telerik:RadPanelBarItem Header="bar 3">
                        <Grid/>
                    </telerik:RadPanelBarItem>
                    <telerik:RadPanelBarItem Header="bar 4">
                        <Grid/>
                    </telerik:RadPanelBarItem>
                </telerik:RadPanelBar>
  5. Alek
    Admin
    Alek avatar
    78 posts

    Posted 28 Nov 2012 Link to this post

    Hello Jen,

    With the note you've added we've managed to reproduce the issue.

    We would like to thank you for pointing our attention over this scenario and we are glad go add points into your account.

    We've logged the issue and here you can follow its progress.

    Regards, Alek
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top