Example #1
0
        public MvcHtmlString JQDatePicker(JQDatePicker datePicker, string id)
        {
            JQDatePickerRenderer jQDatePickerRenderer = new JQDatePickerRenderer(datePicker);

            datePicker.ID = id;
            return(MvcHtmlString.Create(jQDatePickerRenderer.RenderHtml()));
        }
Example #2
0
		public JQDatePickerRenderer(JQDatePicker datePicker)
		{
			this._model = datePicker;
			this._dateSeparator = Thread.CurrentThread.CurrentCulture.DateTimeFormat.DateSeparator;
			this._model.DateFormat = datePicker.DateFormat.Replace("/", this._dateSeparator);
			this._dateFormat = "{0:" + datePicker.DateFormat + "}";
		}
Example #3
0
 public JQDatePickerRenderer(JQDatePicker datePicker)
 {
     this._model            = datePicker;
     this._dateSeparator    = Thread.CurrentThread.CurrentCulture.DateTimeFormat.DateSeparator;
     this._model.DateFormat = datePicker.DateFormat.Replace("/", this._dateSeparator);
     this._dateFormat       = "{0:" + datePicker.DateFormat + "}";
 }
Example #4
0
		public MvcHtmlString JQDatePicker(JQDatePicker datePicker, string id)
		{
			JQDatePickerRenderer jQDatePickerRenderer = new JQDatePickerRenderer(datePicker);
			datePicker.ID = id;
			return MvcHtmlString.Create(jQDatePickerRenderer.RenderHtml());
		}