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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Unable to get focus on expanded row

Thread ID:

Created:

Updated:

Platform:

Replies:

64338 Jul 18,2007 04:10 PM UTC Aug 10,2007 11:53 AM UTC Windows Forms 8
loading
Tags: GridControl
Srinivasulu Venkat
Asked On July 18, 2007 04:10 PM UTC

Hi,
If i expand any row in a grid i will display another gridcontol with headers.

Then on mouse click on the newly expnaded grid will not get focus. But if i click second time i get focus.

thanks and regards
Srinivasulu

Rajagopal [Syncfusion]
Replied On July 18, 2007 05:29 PM UTC

Hi Srinivasulu,

Thanks for your interest in Syncfusion Products.

I don't see this problem in the below sample, this works fine.
http://websamples.syncfusion.com/samples/Grid.Windows/F64338/main.htm

Let me know if this helps.

Have a nice time.
Regards,
Rajagopal

Srinivasulu Venkat
Replied On July 19, 2007 03:31 PM UTC

Hi,

Attached is the screen shot. Here i have a grid(Main) and if i click on '+' on row will get expanded . Now i am replacing this row with new usercontrol which have top and bottom Grids.
The problem is i am not getting focus(by default) on this new usercontrol(Which have top and bottom grids). If i click once i get the focus.then onwards i get contextmenu on these grids.
Requirement: After clciking on plus(+) i should get focus on new usercontrol

thanks and Regards
Srinivasulu

ExpandedRow.zip

haneefm [Syncfusion]
Replied On July 19, 2007 07:33 PM UTC

Hi Srinivasulu,

You can try firing a fake click. There is a helper method in Shared that does this for you, Syncfusion.Drawing.ActiveXSnapshot.FakeLeftMouseClick. You could maybe try this in the grid.MouseDown event. You would want to make sure the point is in the grid's corrdinate's system (grid.PointToClient(Control.MousePosition) and pass the grid as the control). Or, you may need to do it in another event.

Please refer this.
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=34829

Best regards,
Haneef

Srinivasulu Venkat
Replied On July 19, 2007 10:15 PM UTC

Hi,
Can you send me the example which you tested.

Thanks and regards
Srinivas

haneefm [Syncfusion]
Replied On July 20, 2007 07:55 PM UTC

Hi Srinivasulu,

Thank you for posting your query to us.

I am afraid that i was not able to reproduce the issue in your sample. Also i have created a simple sample to test this issue and it is available in the following link,.

PushbuttonExpandControlClick.zip

Please have a look at the above sample and if still the issue exists, could you please try reproducing it in the above sample or send us the reproducing steps that we could sort out the cause of the issue and provide you a solution?

Best regards,
Haneef

Srinivasulu Venkat
Replied On July 30, 2007 07:44 PM UTC

Hi,
Even in your example, After exapanding the row, at first click on save button, Clcik event is not fired and on second time save button is clicked, the Event is fired.

click event shopuld be fired on first click event itself.

Srinivasulu

Srinivasulu Venkat
Replied On August 8, 2007 07:59 PM UTC

Anybody can help me out on this issue

Thanks and Regards
Srinivas

Golda Rebecal [Syncfusion]
Replied On August 10, 2007 11:53 AM UTC

Hi Srinivasulu,

We can make the click event of the Button placed in the user control to be fired on first click by using the Button's PerformClick method in GridControl's CellClick event.

Please refer to the attached sample that illustrates the same.
http://websamples.syncfusion.com/samples/Grid.Windows/F64338/main.htm

Kindly let me know if this helps you.

Best regards,
Golda

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;