ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid binding to DatePicker no longer auto refreshes on change
Title:
B
I
{code}
?
I recently upgraded to 4.0 (great upgrade, BTW). One thing that appears to have been broken by the upgrade is the automatic refreshing of the grids when bound DatePickers change. See the following example below. @(Html.Awe().DatePicker("StartDate").Value(DateTime.Now.Date).Placeholder("Start")) @(Html.Awe().Grid("SalesDetail") ... .Parent("StartDate", "StartDate") Changing the StartDate no longer refreshed the grid like it did under version 3.5 Running ASP.NET MVC 5.0, JQuery 2.1.1, JQuery UI 1.10.4
Save Changes
Cancel
thalter
asked at 02 Jun 2014
Answers
B
I
{code}
?
thnx for noticing, you can use this script for the moment (at the end of the page) $(function () { $('.awe-datepicker-field input').datepicker('option', 'onSelect', function () { $(this).change(); $(this).parent().find('.awe-dpbtn').focus(); }); }); this will override the datepicker's onselect option and trigger change event that is not triggering now
Save Changes
Cancel
Omu
answered at 03 Jun 2014
Thank you for solution, PS. currently I'm still programming with 4.0 framework, when go to 4.5 I definitely buy new version.
at 01 Dec 2014
mtugnoli
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK