GridViewCell.MouseDoubleClickEvent fire event RadWindow's loaded? Strange!

4 posts, 0 answers
  1. tungnt185
    tungnt185 avatar
    40 posts
    Member since:
    Aug 2009

    Posted 06 Oct 2009 Link to this post

    Hello Telerik Team,

    My broblems is:
    - I have a class that inherits RadWindow(1) (create by first creating a child window) with a Loaded event. In this RadWindow I have a Border that I load an other RadPage in Loaded event by Border.Child = New RadPage.
    - In the RadPage I have a RadGridView with a GridViewCell.MouseDoubleClickEvent. In this event I open an other RadWindow(2) with ShowDialog sub.
    Strange here is when RadWindow (2) show, Loaded event of RadWindow(1) run again(???) so RadWindow(2) show under RadWindow(1).

    I don't know why GridViewCell.MouseDoubleClickEvent fire event RadWindow's loaded?


  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 06 Oct 2009 Link to this post

    Hi Taufik,

    We don't recommend using the Loaded event of the RadWindow control or items in it for such tasks, because it is called multiple times. This happens because the popup that hosts the RadWindow control needs to hide and show again in order get on the top of the others. What I could suggest you is to use the Opened event of the RadWindow control - its is called only when the RadWindow is actually opened.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. tungnt185
    tungnt185 avatar
    40 posts
    Member since:
    Aug 2009

    Posted 06 Oct 2009 Link to this post

    Thanks Miroslav,
    I try follow your way but RadWindow(2) still show under RadWindow(1).
    I load RadPage(contain a RadGrid and a GridViewCell.MouseDoubleClickEvent show an other RadWindow)
    When I double click to RadGridCell in RadWindow(1)'s RadPage, it's Loaded event fire with no RadPage's reload but RadWindow(1) still show above RadWindow(2) ?





  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 07 Oct 2009 Link to this post

    Hi Taufik,

    Could you please open a support ticket and send us a project that reproduces the problem. This will help us to investigate what causes it.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top