This question is locked. New answers and comments are not allowed.
I am seeing some peculiar behavior when using the MVC grid with ClientEvents for OnDataBinding. I recently changed some of my grids to delay binding using the ClientEvents as follows:
.ClientEvents(events => events.OnDataBinding("FutureAppointments_onDataBinding"))
This gives me the ability to get variables that I need that are only available once the page is fully rendered. It works perfectly until I start testing it with Selenium. I wait for the page to load as well as for all Ajax to complete before I attempt to click a menu item to go to my next page. When I click the menu item, I get the following error:
ERROR: There was an unexpected Alert! [error]
if I comment out the ClientEvents line for the grid, it works perfectly. I have even added a sleep command for 5 seconds before attempting to move to the next command, and I still get the error.
Any ideas on what could be causing this issue?
Thanks,
Jesse
.ClientEvents(events => events.OnDataBinding("FutureAppointments_onDataBinding"))
This gives me the ability to get variables that I need that are only available once the page is fully rendered. It works perfectly until I start testing it with Selenium. I wait for the page to load as well as for all Ajax to complete before I attempt to click a menu item to go to my next page. When I click the menu item, I get the following error:
ERROR: There was an unexpected Alert! [error]
if I comment out the ClientEvents line for the grid, it works perfectly. I have even added a sleep command for 5 seconds before attempting to move to the next command, and I still get the error.
Any ideas on what could be causing this issue?
Thanks,
Jesse