Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Ribbonbar > drag & drop on ribbon

Not answered drag & drop on ribbon

Feed from this thread
  • hema avatar

    Posted on Oct 13, 2011 (permalink)

    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

    Reply

  • hema avatar

    Posted on Oct 17, 2011 (permalink)

    it is very urgent please reply , it is almost 72 hours over.

    Regards
    Hema

    Reply

  • Peter Peter admin's avatar

    Posted on Oct 17, 2011 (permalink)

    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.

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Ribbonbar > drag & drop on ribbon
Related resources for "drag & drop on ribbon"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]