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

drag & drop on ribbon

2 Answers 68 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
hema
Top achievements
Rank 1
hema asked on 13 Oct 2011, 01:12 PM
Hi
When i am droping an object from another control to ribbon, how do u know.. where did i drop my object, i mean.. on which button/gallery and what is that name and all


i have tried like this
Point pt = new Point(e.X, e.Y);
 if ((rbMosaique.GetChildAtPoint(pt) != null) &&
(rbM.GetChildAtPoint(pt).GetType() == typeof(Telerik.WinControls.UI.RadGalleryItem))


but it is always showing null


pelase help me 


Advance thanks


Regards
Hema

2 Answers, 1 is accepted

Sort by
0
hema
Top achievements
Rank 1
answered on 17 Oct 2011, 05:58 AM
it is very urgent please reply , it is almost 72 hours over.

Regards
Hema
0
Peter
Telerik team
answered on 17 Oct 2011, 01:29 PM
Hello Hema,

Thank you for writing.

You should use GetElementAtPoint method instead of GetChildAtPoint. Please refer to the attached sample project for additional information.
RadElement element = this.radRibbonBar1.ElementTree.GetElementAtPoint(dragPoint);

Please note that only Support Tickets are reviewed according to your license. The answers in the forum threads are not guaranteed although forum threads are usually reviewed and answered by a Telerik representative within 72 hours from the time of posting. Please note that this time frame excludes the weekends and concerns only the business days (Mon - Fri) as described in our Support Options page.

I hope that helps.

All the best,
Peter
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Tags
RibbonBar
Asked by
hema
Top achievements
Rank 1
Answers by
hema
Top achievements
Rank 1
Peter
Telerik team
Share this question
or