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

Click

3 Answers 94 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
jen
Top achievements
Rank 1
jen asked on 22 Nov 2012, 07:13 PM

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>


 

3 Answers, 1 is accepted

Sort by
0
Alek
Telerik team
answered on 27 Nov 2012, 01:21 PM
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.

0
jen
Top achievements
Rank 1
answered on 27 Nov 2012, 03:16 PM
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>
0
Alek
Telerik team
answered on 28 Nov 2012, 02:36 PM
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.

Tags
AutoCompleteBox
Asked by
jen
Top achievements
Rank 1
Answers by
Alek
Telerik team
jen
Top achievements
Rank 1
Share this question
or