コード例 #1
0
        /*public MvcHtmlString JQChart(Kesco.Web.Mvc.UI.JQChart chart, string id)
         * {
         *  JQChartRenderer renderer = new JQChartRenderer(chart);
         *  chart.ID = id;
         *  return MvcHtmlString.Create(renderer.RenderHtml());
         * }*/

        public MvcHtmlString JQDatePicker(JQDatePicker datePicker, string id)
        {
            JQDatePickerRenderer renderer = new JQDatePickerRenderer(datePicker);

            datePicker.ID = id;
            return(MvcHtmlString.Create(renderer.RenderHtml()));
        }
コード例 #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 + "}";
 }