Skip to content

Commit 745cea8

Browse files
author
User Jenkins
committed
Sync with Kendo UI Professional
1 parent 5d32ff1 commit 745cea8

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

docs-aspnet/html-helpers/data-management/grid/binding/ajax-binding.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ To configure the Grid for {{ site.framework }} to do Ajax binding to the **Produ
9999
.DataSource(dataSource => dataSource //Configure the Grid data source.
100100
.Ajax() //Specify that Ajax binding is used.
101101
.Read(read => read.Action("Products_Read", "Home")) // Set the action method which will return the data in JSON format.
102+
.Events(ev => ev.Error("onError"))
102103
)
103104
.Columns(columns =>
104105
{
@@ -113,6 +114,12 @@ To configure the Grid for {{ site.framework }} to do Ajax binding to the **Produ
113114
.Sortable() // Enable sorting
114115
)
115116

117+
<script>
118+
function onError(e) {
119+
console.log(e.status);
120+
}
121+
</script>
122+
116123
1. Build and run the application.
117124

118125
![The final result](../images/grid-bound-grid.png)

docs-aspnet/html-helpers/editors/datepicker/overview.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ To reference an existing Telerik UI DatePicker instance, use the [`jQuery.data()
9999
$(function() {
100100
// The Name() of the DatePicker is used to get its client-side instance.
101101
var datepicker = $("#datepicker").data("kendoDatePicker");
102+
103+
//Use the "value" API method to get the DatePicker's value.
104+
console.log(datepicker.value());
102105
});
103106
</script>
104107

docs/controls/data-management/filter/state.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ The following example demonstrates how to obtain the current filter expression a
155155
});
156156
157157
function saveState(e) {
158-
localStorage["myFilterSettings"] = JSON.stringify(getFilter().getOptions().expression);
158+
var expression = getFilter().getOptions().expression;
159+
localStorage["myFilterSettings"] = expression.filters ? JSON.stringify(expression) : "";
159160
// You can store and restore all options not just the expression.
160161
}
161162

0 commit comments

Comments
 (0)