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

SaveCellInfo/QueryCellInfo

I use these events to save and get values for my cell''s tag( e.style.Tag ). Things seem to work fine except when I tab into this cell or enter the cell using Left/Right arrows the cell behaves weird. When I mouse click into the cell, things are fine. When I tab into the cell, for some reason my CurrentCell.IsEditing becomes false where as it should be true. Due to the way my code is setup, this leads me to hiding my usercontrol in the cell and so on. If I forcefully show the usercontrol in that cell, then the control never leaves the cell ( when I click on other cells for example). Any idea why?

8 Replies

AD Administrator Syncfusion Team August 28, 2004 12:49 AM UTC

Try setting the grid.ActivateCurrentCellBehavior to SetCurrent to see if that handles this problem for you.


MB Madhavi Balusu August 30, 2004 04:10 PM UTC

No, that did not help. This problem is only for those cells which have e.style.tag set to an integer value. Those cells whose tags I dont mess around with are fine ( tabs work as they are supposed to ). Any idea?


AD Administrator Syncfusion Team August 30, 2004 05:32 PM UTC

>>reason my CurrentCell.IsEditing becomes false CurrentCell.IsEditing is normally set to true when CurrentCell.BeginEdit() is called. Do you have any custom cell types that you have derived? If so, does your renderer call NotifyCurrentCellChanging as discussed in this forum thread. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=18340


MB Madhavi Balusu August 30, 2004 07:54 PM UTC

I tried to put NotifyCurrentCellChanging in Renderer''s OnSaveChanges and it not work. It''s got something to do with the setting of Tag value. Those cells that are not messed around in QueryCellInfo and SaveCellInfo are working fine. I am attaching these 2 functions, maybe you will see something wrong here: temp_290.zip Thanks!


AD Administrator Syncfusion Team August 30, 2004 08:52 PM UTC

In your SaveCellInfo, when you set e.Handled = true;, this means the grid''s default save code will not be hit, and only the code you provided will be executed. Is this what you want? You might try commenting out this e.Handled code to see it letting the grid''s default code to execute will make a difference.


MB Madhavi Balusu August 30, 2004 08:56 PM UTC

No improvement. I still have the problem.


AD Administrator Syncfusion Team August 30, 2004 09:12 PM UTC

Is the SaveCellInfo code being hit when things do not work? If not, that might suggest NotifyCurrentCellChanging is not being triggered. Normally this is called when you control value is initially changed, and not in OnSaveChanges. If you can post a sample project showing the problem, we can try to spot something here.


MB Madhavi Balusu September 14, 2004 03:13 PM UTC

Hi Clay, Just wanted to update you on this problem. I solved it and the reson for this behavior ( on tabbing cell looses focus ) was that I had: this.DisableTextBox = true; in my Renderer''s OnDraw. Duh!

Loader.
Live Chat Icon For mobile
Up arrow icon