drag & drop on ribbon

3 posts, 0 answers
  1. hema
    hema avatar
    16 posts
    Member since:
    Mar 2011

    Posted 13 Oct 2011 Link to this post

    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. hema
    hema avatar
    16 posts
    Member since:
    Mar 2011

    Posted 17 Oct 2011 Link to this post

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

    Regards
    Hema
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 17 Oct 2011 Link to this post

    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.

Back to Top