Hello Pranay,
I am sorry to hear you are experiencing this problem. You stated "
after doing this it is navigating me to Parent window and Not to the form which is generated after clicking create", so my question is when the focus is on the Parent window, does the generated form is still opened? If it is, please try using the following code right after
ActiveBrowser.Close():
This should set the focus to the generated form.
If the form and the modal window are both closed and the focus is on the Parent window, try to remove the
ActiveBrowser.Close() method and use only the code above.
If you continue to have difficulty, we'll need to reproduce the issue locally in order to find a workable solution for you. Please provide us with a copy of your test and access to your application. If it is not possible to grant us access to your application, please take a Fiddler trace using
FiddlerCap and send it to us in a zip file. A
Jing video demonstrating the issue may also help us to better understand what is happening. If you deem that information too sensitive for this forum, you can create a support ticket and attach it there. Thanks for providing the information we need to best assist you.
Regards,
Plamen
the Telerik team