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

GridViewComboboxColumn closes immediatly after click on the scrollbar

1 Answer 33 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 22 Apr 2015, 07:12 AM

Hello,

 

I have to DropDownList elements in my GridView. Everything is fine except, that the dropdownlist closes immediatly after I click on the scrollbar of the dropdownlist. So there is no way to an item with comfort.

 

Thanks for help

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Apr 2015, 02:17 PM
Hello Thomas,

Thank you for writing.

We had a similar issue logged it in our feedback portal. However, the fix was introduced in Q3 2014
(2014.3.1104)
. Here is the feedback item for your reference.


For 2014.3.1021 version, you can use the following solution:
private void radGridView1_CellEditorInitialized(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
    RadDropDownListEditor ddl = e.ActiveEditor as RadDropDownListEditor;
    if (ddl != null)
    {
        RadDropDownListEditorElement el = ddl.EditorElement as RadDropDownListEditorElement;
        el.PopupClosing -= el_PopupClosing;
        el.PopupClosing += el_PopupClosing;
    }
}
 
private void el_PopupClosing(object sender, RadPopupClosingEventArgs args)
{
    Point relativeMousePositionInPopup = ((RadDropDownListElement)sender).ListElement.ElementTree.Control.PointToClient(Control.MousePosition);
    args.Cancel = ((RadDropDownListElement)sender).ListElement.VScrollBar.ControlBoundingRectangle.Contains(relativeMousePositionInPopup);
}

If the current version that you use is newer than Q3 2014 (2014.3.1104) it would be greatly appreciated if you specify the exact steps how to reproduce the problem. Thus, we would be able to investigate the precise case and assist you further.

I hope this information helps. Should you have further questions, I would be glad to help.
 
Regards,
Dess
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
GridView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or