We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

GridGroupingControl - Dbl Click, Opens the Form Behind the Grid

Hi,

We are using V 4.2.0.37.

I have a main form with GGC. Each time we double click on any record in GGC, I should pop-up aform. These pop-up forms should first should open top of main form. But when we click on grid, main form should be on top of all. That means, we can not set main form as owner to these pop-up forms.


Now the issue is, when we double click, while pop-up is being opened, grid is getting activated and main form is displayed on top. Thus pushing back the pop-up. this can be because of small movement in cursor while double click.

I have attached a sample to demonstrate this.
Please try to double click on many places in the grid (ex cell corners). Some times you can observe the pop-up being opened behind the main form. This is not observed when you open pop-up using a button click. Itz only because of grid getting activated.

How can we solve this issue?

Rgds
Rajani kanth

PopUpOpeningBehind.zip

4 Replies

AD Administrator Syncfusion Team November 6, 2006 04:20 AM UTC

Hi Rajani,

Try setting the TopMost property of the form to TRUE. Here is a code snippet

Form2 form2 = new Form2();
form2.Show();
form2.TopMost = true;

Let me know if this helps.

Best Regards,
Haneef


BR Badri Rajani Kanth November 6, 2006 10:28 AM UTC

Thank You Haneef,

But if we make it top most, if click on the parent form grid again, pop-up will NOT go behind the parent form. As I said earlier, I should be opening multiple pop-ups, by double clicking on grid records. Pop-up should open on top of grid only for the first time. Next time when I click on grid, all pop-ups should go behind. Again when I double click on record, new pop-up should be displayed on top. This is possible with a button in main form. But problem exists with grids. You can observe this in the sample.

Can you plz look into this?

Rgds
Rajani Kanth


AD Administrator Syncfusion Team November 6, 2006 12:24 PM UTC

Hi Rajani,

I have created the sample as per your requirement. The attached sample implements the timer component to resolve this issue. Please try the sample and let me know if this helps.

Here is a sample.
http://www.syncfusion.com/Support/user/uploads/PopUpOpeningBehind_8879bbb2.zip

Best Regards,
Haneef


BR Badri Rajani Kanth November 6, 2006 02:55 PM UTC

Hi Haneef,

We are already using similar timer fix. We want to know some thing, make grid not activated till the time child form is loaded (stop raising all grid events). Again this also can be done by a timer.

Is there any other fix?

Rgds
Rajani Kanth

Loader.
Live Chat Icon For mobile
Up arrow icon