Click here to Skip to main content
15,881,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Datepicker by default shows current month even if date is changed to Jaunuary or any other month.
When i change the date to other month and again click datepicker opens with current month not the month selected.

What I have tried:

C#
@Html.TextBoxFor(m => m.startdate, "{0:ddd dd MMM yyyy}", new
               {
                   @id = "txtStartdate",
                   @class = "Date DefaultToolTip dtpFormat_ddd_dd_MMM_yyyy",
                   //@disable = "disable",
                   @data_prevValue = (Model.startdate == null ? "" : Model.startdate.Value.ToString()),
                   @tabindex = 14,
                   @data_toggle = "tooltip",
                   @data_placement = "right",
                   //@readonly = true,
                   @data_boxName = "Start Date",
                   @data_destroyDatePickerForReadonly = false,
                   @data_cursorPointer = true,
                   @data_dtpDate = (Model.startdate == null ? "" : Model.startdate.Value.ToString("dd/MM/yyyy")),
                   @title = SolutionCentre.Infrastructure.Resources.ResourcesforAdmin.SystemOptionsToolTips.TaskSch_box8.ToString()

               })
Posted
Updated 9-Nov-16 1:25am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900