Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kendo datepicker 如何使kendoDatePicker弹出_Kendo Datepicker - Fatal编程技术网

Kendo datepicker 如何使kendoDatePicker弹出

Kendo datepicker 如何使kendoDatePicker弹出,kendo-datepicker,Kendo Datepicker,我有两个剑道日期选择器。我想能够使另一个弹出后,一个日期是第一个选择。以下是我的代码片段: $(this.oParentDiv.find('.datePicker')).kendoDatePicker({ format: "yyyy-MM-dd", change: function (e) { if (e.sender.element.context.className.indexOf("fromDate")

我有两个剑道日期选择器。我想能够使另一个弹出后,一个日期是第一个选择。以下是我的代码片段:

      $(this.oParentDiv.find('.datePicker')).kendoDatePicker({
            format: "yyyy-MM-dd",
            change: function (e) {
              if (e.sender.element.context.className.indexOf("fromDate") != -1) {
                $(".toDate").val(moment(this._value).format('YYYY-MM-DD'));
               //Code to make toDate popup comes here
              }
            }
          });

在fromDate中选择日期后,如何使toDate弹出窗口?

在日期选择器实例上有一个打开的方法。设置第二个选择器的值后,可以在change函数中这样调用它:

$(".toDate").data("kendoDatePicker").open();