Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Editor become nothing after called PerformAction
posted

Hi,

I am now to perform a cell navigation in the UltraTree by detected 'Enter' key during key up event. In the event i have used PerformAction(UltraTreeAction.NextCell, False, False). This cause an weird behavior when the NextCell is a TextEditor, the DropDownEditor seems not working anymore when the focus jump to the nextcell when the nextcell's editor is a TextEditor. I attached the sample codes for reference. Hope you can help on this.

http://www.sendspace.com/file/e32ynl

Between i am using 2009 vol 2 SR 2058.

Thank you.

 

Choong

  • 469350
    Offline posted

    Hi Choong,

    Calling PerformAction in the KeyUp event might cause unexpected behavior because the control was already in the middle of performing an action.

    It's probably safer to use the KeyUp event to call BeginInvoke and invoke another method to call PerformAction. That way the current operation will complete before the PerformAction is executed.

    That's just a shot in the dark, of course. If that doesn't help, posting a sample here would be your best bet.

  • 18495
    posted

    Hello,

    The file you referred to was not able to be downloaded.  If you select the Options tab when editing a post, you can attach a file to the post.