Declined
Last Updated: 02 Mar 2016 07:21 by ADMIN
Georges
Created on: 06 Jun 2014 14:02
Category:
Type: Bug Report
1
RadListControl Double click on scrollbar issue
When I click on the scrollbar of a radlistcontrol to go down. The doubleclick event is fired but I don't think it should be fired.
6 comments
ADMIN
Stefan
Posted on: 02 Mar 2016 07:21
Thank you for sharing your opinion John. We will consider it when we plan control improvements in future.
John
Posted on: 01 Mar 2016 16:42
I'm having the same issue.  So Yes, thank you Stephan for the example code. 

No one wants the double click event to fire when the scroll bar is double-clicked and having us all open support tickets seems a waste for what is or should be essentially a bug fix.
Georges
Posted on: 13 Jun 2014 09:19
Hi Stefan!

Thanks for this reply and this small sample. That is exactly what i was looking for. I didn't know that Telerik worked like this. Thanks again for your help

Best regards
ADMIN
Stefan
Posted on: 13 Jun 2014 08:52
Hi Georges,

our controls are using a special framework and are built of elements. So each control, holds hierarchy of elements and when you subscribe to the DoubleClick event of the control, you will have it fired despite the element you are over. 

If you have a specific case you want to handle, you should open a support ticket and ask for assistance our support staff. I will just share a small example here, which demonstrates how you can capture double click over an item in the control:
       void radListControl1_DoubleClick(object sender, EventArgs e)
        {
            RadListVisualItem clickedItem = radListControl1.ElementTree.GetElementAtPoint(radListControl1.PointToClient( MousePosition)) as RadListVisualItem;
            if (clickedItem != null)
            {
                RadListDataItem dataItem = clickedItem.Data;
                //do smth with the data item
            }
        }
Georges
Posted on: 13 Jun 2014 07:27
Ok, thanks for the reply Stefan.
I m surprised that it is declined, because when I use a ListBox the DoubleClick event is not fired when i click on the scrollbar which I think it is the standard behaviour.
For me, RadListcontrol is the equivalent as ListBox so when i moved my application to telerik I replaced my lisbox with a radlistcontrol, and I was expecting to have the same behaviour.

Regards.
ADMIN
Stefan
Posted on: 09 Jun 2014 15:13
Hi Georges,

The DoubleClick event should be fired when you double click anywhere over the control, hence, this item will be declined. 

I will suggest that you open a support ticket where you can share with our support guys what is your goal and they will help you achieve it.