Coming from an .ASPX background I have had great difficulty in figuring out how I can use the DatePicker's javascript Change event to call an MVC action on a controller for the same page where a Grid is also bound.
My thinking is load the ViewBag with a value for the DatePicker when the page and Grid are first loaded and then use the Change event of the DatePicker to call an action on the controller with the new value of the DatePicker and refresh the grid with the new data.
But I can't figure out how to do it. Any guidance would be appreciated.
My thinking is load the ViewBag with a value for the DatePicker when the page and Grid are first loaded and then use the Change event of the DatePicker to call an action on the controller with the new value of the DatePicker and refresh the grid with the new data.
But I can't figure out how to do it. Any guidance would be appreciated.