Webgrid keeping focus while a modal is active

1 reply. Last post: January 24, 2017 7:38 PM by James Mackin
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
James MackinMember

Hello,

I have been trying to impliment a modal dialog into my code, but have found that if I open the dialog from the WebGrid's context menu the user can still navigate the grid with the arrow keys and even type in the filter fields. I was able to reproduce this issue with the OnBeforeDelete method, as you can see in my example below.

This issue does not happen on grid methods which do not use the context menu such as OnCellDoubleClick. This has lead me to believe the grid has code to retake focus once the context menu has closed and it is causing problems with the modal's functionality.

My example can be found here: https://www.dropbox.com/s/i05o8xy5tqr4znn/GridTestApplication.zip?dl=0

Please let me know how to proceed.

Thanks,

James

All times are GMT -5. The time now is 6:00 PM.
Previous Next