Skip to content

Commit

Permalink
Sync with Kendo UI Professional
Browse files Browse the repository at this point in the history
  • Loading branch information
Kendo Bot committed May 13, 2019
1 parent fc8cc89 commit 1b52c67
Show file tree
Hide file tree
Showing 28 changed files with 567 additions and 98 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,34 @@ The example below demonstrates how to configure the adaptive rendering mode of t

###### Example

```Razor
@(Html.Kendo().Scheduler<KendoSchedulerAjaxEditing.Models.TaskViewModel>()
.Name("scheduler")
.Mobile(MobileMode.Auto)
.Date(new DateTime(2013, 6, 13))
.StartTime(new DateTime(2013, 6, 13, 7, 00, 00))
.Height(600)
.Views(views =>
{
views.DayView();
views.WeekView(weekView => weekView.Selected(true));
views.MonthView();
views.AgendaView();
})
.Timezone("Etc/UTC")
.DataSource(d => d
.Model(m => {
m.Id(f => f.TaskID);
m.Field(f => f.OwnerID).DefaultValue(1);
m.RecurrenceId(f => f.RecurrenceID);
})
.Read("Tasks_Read", "Home")
.Create("Tasks_Create", "Home")
.Destroy("Tasks_Destroy", "Home")
.Update("Tasks_Update", "Home")
)
)
```
```Razor
@(Html.Kendo().Scheduler<KendoSchedulerAjaxEditing.Models.TaskViewModel>()
.Name("scheduler")
.Mobile(MobileMode.Auto)
.Date(new DateTime(2013, 6, 13))
.StartTime(new DateTime(2013, 6, 13, 7, 00, 00))
.Height(600)
.Views(views =>
{
views.DayView();
views.WeekView(weekView => weekView.Selected(true));
views.MonthView();
views.AgendaView();
})
.Timezone("Etc/UTC")
.DataSource(d => d
.Model(m => {
m.Id(f => f.TaskID);
m.Field(f => f.OwnerID).DefaultValue(1);
m.RecurrenceId(f => f.RecurrenceID);
})
.Read("Tasks_Read", "Home")
.Create("Tasks_Create", "Home")
.Destroy("Tasks_Destroy", "Home")
.Update("Tasks_Update", "Home")
)
)
```

## See Also

Expand Down
56 changes: 28 additions & 28 deletions docs-aspnet-mvc/helpers/scheduler/adaptive-rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,34 @@ The example below demonstrates how to configure the adaptive rendering mode of t

###### Example

```Razor
@(Html.Kendo().Scheduler<KendoSchedulerAjaxEditing.Models.TaskViewModel>()
.Name("scheduler")
.Mobile(MobileMode.Auto)
.Date(new DateTime(2013, 6, 13))
.StartTime(new DateTime(2013, 6, 13, 7, 00, 00))
.Height(600)
.Views(views =>
{
views.DayView();
views.WeekView(weekView => weekView.Selected(true));
views.MonthView();
views.AgendaView();
})
.Timezone("Etc/UTC")
.DataSource(d => d
.Model(m => {
m.Id(f => f.TaskID);
m.Field(f => f.OwnerID).DefaultValue(1);
m.RecurrenceId(f => f.RecurrenceID);
})
.Read("Tasks_Read", "Home")
.Create("Tasks_Create", "Home")
.Destroy("Tasks_Destroy", "Home")
.Update("Tasks_Update", "Home")
)
)
```
```Razor
@(Html.Kendo().Scheduler<KendoSchedulerAjaxEditing.Models.TaskViewModel>()
.Name("scheduler")
.Mobile(MobileMode.Auto)
.Date(new DateTime(2013, 6, 13))
.StartTime(new DateTime(2013, 6, 13, 7, 00, 00))
.Height(600)
.Views(views =>
{
views.DayView();
views.WeekView(weekView => weekView.Selected(true));
views.MonthView();
views.AgendaView();
})
.Timezone("Etc/UTC")
.DataSource(d => d
.Model(m => {
m.Id(f => f.TaskID);
m.Field(f => f.OwnerID).DefaultValue(1);
m.RecurrenceId(f => f.RecurrenceID);
})
.Read("Tasks_Read", "Home")
.Create("Tasks_Create", "Home")
.Destroy("Tasks_Destroy", "Home")
.Update("Tasks_Update", "Home")
)
)
```

## See Also

Expand Down
44 changes: 44 additions & 0 deletions docs/api/javascript/ui/daterangepicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,28 @@ you can also pass a function that will be dynamically resolved for each date of

note that a check for an empty `date` is needed, as the widget can work with a null value as well.

### endField `String`*(default: "")*

Specifies the end field name for model binding.

#### Example - specify the initial view, which calendar renders

<div id="example">
<div id="daterangepicker" title="daterangepicker"></div>
<script>
$(document).ready(function () {
$("#daterangepicker").kendoDateRangePicker({
endField: "endField"
});

var viewModel = kendo.observable({
endField: new Date()
});
kendo.bind($("#example"), viewModel);
});
</script>
</div>

### footer `String|Function`

The [template](/api/javascript/kendo/methods/template) which renders the footer of the calendar. If false, the footer will not be rendered.
Expand Down Expand Up @@ -433,6 +455,28 @@ The following settings are available for the **start** value:
start: "year"
});
</script>

### startField `String`*(default: "")*

Specifies the start field name for model binding.

#### Example - specify the initial view, which calendar renders

<div id="example">
<div id="daterangepicker" title="daterangepicker"></div>
<script>
$(document).ready(function () {
$("#daterangepicker").kendoDateRangePicker({
startField: "startField"
});

var viewModel = kendo.observable({
startField: new Date()
});
kendo.bind($("#example"), viewModel);
});
</script>
</div>

## Fields

Expand Down
Loading

0 comments on commit 1b52c67

Please sign in to comment.