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
130
Keyboard focus when Editor Template is used within XamGrid
posted

Hello,

    We have a XamGrid whose Editor Template is a TextBox. When the user clicks a cell in the XamGrid, it shows the TextBox. However, the user has to click again within the TextBox to start typing. Thus two clicks are needed for each TextBox cell. This behavior is annoying our users.

Is there anyway to automatically enable the keyboard focus on the TextBox that is used as the XamGrid Cell editor ?

[Additional Details]

I noticed that in the default implementation of XamGrid without an EditorTemplate, it behaves correctly. On the first click the cell gets activated and the user is able to start typing. It is only when the XamGrid uses EditorTemplate that two clicks are needed.

  • 138253
    Offline posted

    Hello Koshy,

     

    Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.

     

    Looking forward for your reply.

    XamGridEditorTemplate.zip