I have a grid that is loading in a modal popup (a partial view) that requires some information from the parent page being set before calling the datasource on the controller. I have set AutoBind to false and while it does prevent the datasource from calling the controller until I load the partial view, the .Data(javascript function) that builds the dataset needed for the controller is still being hit as soon as the parent page is initialized, but before the values on the page have been set (user input fields).
Is there a way to either prevent this from happening, or is there another technique I should be using?
Thanks for any help in advance