This is a migrated thread and some comments may be shown as answers.

Use Change event to reload a grid with new date value

0 Answers 137 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Timothy
Top achievements
Rank 1
Timothy asked on 18 Jul 2012, 06:08 AM
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.

No answers yet. Maybe you can help?

Tags
Date/Time Pickers
Asked by
Timothy
Top achievements
Rank 1
Share this question
or