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

RadDropDownButton auto opening on focus

2 Answers 44 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Federico Gubellini
Top achievements
Rank 1
Federico Gubellini asked on 10 Jan 2019, 11:06 AM

Hello,

I'm using a RadDropDownButton as Editor inside a RadGridView cell. I have to display the DropDownContent when the cell enters in edit mode.

I've tryied to set the RadDropDownButton IsOpen property to "True" on the RadDropDownButton GotFocus event, but the RadDropDownButton immediatly closes its DropDownContent.

Any suggestion?

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 15 Jan 2019, 10:51 AM
Hello Federico,

Could you please clarify how exactly you've defined your column - are you using the CellEditTemplate property or have defined a custom column as demonstrated in this article?

I tried defining the following CellEditTemplate for the column which seems to provide the desired result at my end:

<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}">
    <telerik:GridViewDataColumn.CellEditTemplate>
        <DataTemplate>
            <telerik:RadDropDownButton IsOpen="True" KeepOpen="True" Content="{Binding Name}">
                <telerik:RadDropDownButton.DropDownContent>
                    <TextBlock Text="Some Text" />
                </telerik:RadDropDownButton.DropDownContent>
            </telerik:RadDropDownButton>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>

Could you please give this a try and let me know if this would work for you? I look forward to your reply.

Regards,
Dilyan Traykov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Federico Gubellini
Top achievements
Rank 1
answered on 16 Jan 2019, 01:49 PM

Hello Dilyan,

I was missing the "KeepOpen" property. Having set that property, it works fine.

Thank you.

Tags
Buttons
Asked by
Federico Gubellini
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Federico Gubellini
Top achievements
Rank 1
Share this question
or