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

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

3 Answers 63 Views
Window
This is a migrated thread and some comments may be shown as answers.
tungnt185
Top achievements
Rank 2
tungnt185 asked on 06 Oct 2009, 09:40 AM
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?


3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 06 Oct 2009, 10:59 AM
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.
0
tungnt185
Top achievements
Rank 2
answered on 07 Oct 2009, 02:36 AM
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) ?





0
Miroslav Nedyalkov
Telerik team
answered on 07 Oct 2009, 08:33 AM
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.
Tags
Window
Asked by
tungnt185
Top achievements
Rank 2
Answers by
Miroslav Nedyalkov
Telerik team
tungnt185
Top achievements
Rank 2
Share this question
or