Use Change event to reload a grid with new date value

1 posts, 0 answers
  1. Timothy
    Timothy avatar
    37 posts
    Member since:
    Aug 2011

    Posted 18 Jul 2012 Link to this post

    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.
Back to Top