You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-aspnet/html-helpers/data-management/grid/troubleshoot/known-exceptions.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@ position: 3
8
8
9
9
# Known Exceptions
10
10
11
-
This article provides solutions for some known exceptions you might encounter while working with the Telerik UI for ASP.NET MVC Grid HtmlHelper.
11
+
This article provides solutions for some known exceptions you might encounter while working with the Telerik UI Grid HtmlHelper for {{ site.framework }}.
12
12
13
13
## Circular Reference Detected While Serializing an Object of Type
14
14
15
15
The reason for this exception is that the [`JavaScriptSerializer`](https://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.aspx) class used by the [`Json`](https://msdn.microsoft.com/en-us/library/system.web.mvc.controller.json.aspx) method cannot serialize object graphs which contain circular references (refer to each other).
16
16
17
-
**Solution** Use View Model objects and avoid serializing the properties which create the circular reference. For further information on this issue, refer to the [article on avoiding circular reference exceptions]({% slug freqaskedquestions_gridhelper_aspnetmvc %}#how-to-avoid-circular-reference-exceptions).
17
+
**Solution** Use View Model objects and avoid serializing the properties which create the circular reference. For further information on this issue, refer to the [article on avoiding circular reference exceptions](https://docs.telerik.com/{{ site.platform }}/html-helpers/data-management/grid/faq#how-to-avoid-circular-reference-exceptions).
18
18
19
19
## JSON JavaScriptSerializer Serialization or Deserialization Error
20
20
@@ -23,7 +23,7 @@ This exception is thrown when the length of the JSON response exceeds the defaul
23
23
**Solution** To fix this issue, use any of the following suggestions:
24
24
25
25
* Enable paging by calling the `Pageable` method.
26
-
* Serialize only the required properties of your model by [using a View Model]({% slug freqaskedquestions_gridhelper_aspnetmvc %}#how-to-convert-my-models-to-view-model-objects).
26
+
* Serialize only the required properties of your model by [using a View Model](https://docs.telerik.com/{{ site.platform }}/html-helpers/data-management/grid/faq#how-to-convert-my-models-to-view-model-objects).
27
27
* Manually serialize the `DataSourceResult`.
28
28
29
29
public ActionResult Read([DataSourceRequest] DataSourceRequest request)
@@ -60,7 +60,10 @@ Yet another reason is that you explicitly specified that the Grid should make HT
60
60
61
61
## Limited Usage of Templates
62
62
63
-
An exception that templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions can occur if an editable Grid is bound to a `DataTable` or `DataSet`. The reason is that the ASP.NET MVC `EditorFor` method does not support `DataTable`.
63
+
{% if site.core %}
64
+
Тhe Grid for Core is not rendered on the server. Therefore, it is not possible to define server-side templates (like Group Header Templates) which makes the usage of `.ServerOperations(true)` in this case incompatible.
65
+
{% else %}
66
+
An exception that templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions can occur if an editable Grid is bound to a `DataTable` or `DataSet`. The reason is that the ASP.NET MVC `EditorFor` method does not support `DataTable`.
64
67
65
68
**Solution** Use a popup edit form with a custom editor template.
66
69
@@ -70,6 +73,7 @@ For more information on how to resolve this issue, refer to the following resour
70
73
*[Editor templates in the Telerik UI for ASP.NET MVC Grid HtmlHelper]({% slug editortemplates_grid_aspnetcore %})—use a separate editor template for each data field.
71
74
*[The TemplateName setting in the Telerik UI for ASP.NET MVC Grid HtmlHelper](/api/kendo.mvc.ui.fluent/grideditingsettingsbuilder#methods-TemplateName(System.String))—use it
72
75
to set a single edit form template for the whole edit form.
76
+
{% endif %}
73
77
74
78
## Invalid Template Error When Nesting Client Templates
Copy file name to clipboardExpand all lines: docs-aspnet/html-helpers/data-management/grid/troubleshoot/troubleshooting.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@ position: 1
8
8
9
9
# Common Issues
10
10
11
-
This article provides solutions for common issues you might encounter while working with the Telerik UI for ASP.NET MVC Grid HtmlHelper.
11
+
This article provides solutions for common issues you might encounter while working with the Telerik UI Grid HtmlHelper for {{ site.framework }}.
12
12
13
13
## Grid Performs HTTP GET Requests instead of POST
14
14
15
15
By default, the Kendo UI Grid for ASP.NET MVC makes POST requests when configured for `Ajax binding`. This is implemented by a custom DataSource transport and schema. Those are defined in the `kendo.aspnetmvc.min.js`.
16
16
17
-
**Solution** Make sure this file is included after the other Kendo UI JavaScript files. For more information, refer to the [ASP.NET MVC introductory article]({% slug overview_aspnetmvc6_aspnetmvc %}).
17
+
**Solution** Make sure this file is included after the other Kendo UI JavaScript files. For more information, refer to the [{{ site.framework }} introductory article](https://docs.telerik.com/{{ site.platform }}/introduction).
18
18
19
19
The following example demonstrates the correct order of JavaScript files.
20
20
@@ -39,13 +39,23 @@ The causes of this issue are various.
39
39
40
40
## Client-Side Events Are Not Raised in Server-Bound Mode
41
41
42
-
When configured for server binding, the Kendo UI Grid for ASP.NET MVC does not fire all client-side events.
42
+
{% if site.core %}
43
+
Client-side events, which are related to data-binding (sorting, filtering, paging, grouping, etc.) and CRUD data operations, will not be raised when the Grid is configured for server binding.
44
+
45
+
For an Ajax() bound Grid, make sure that the `.ServerOperation(false)` property is disabled.
46
+
{% else %}
47
+
When configured for server binding, the Kendo UI Grid for ASP.NET MVC does not fire all client-side events.
43
48
44
49
**Solution** For more information on how to resolve this issue, refer to the [article on server binding of the Grid]({% slug htmlhelpers_grid_aspnetcore_localbinding %}#supported-client-side-events).
45
50
46
-
## Grid Fails to Update Dates and Numbers When Current Culture Is Not en-US
51
+
For an Ajax() bound Grid, make sure that the `.ServerOperation(false)` property is disabled.
52
+
{% endif %}
53
+
54
+
{% if site.mvc %}
55
+
## Grid Fails to Update Dates and Numbers When Current Culture Is Not en-US
47
56
48
57
**Solution** Make sure the JavaScript file for that culture is included. For additional information on this issue, refer to [this section](#include-javascript-for-the-current-culture-razor).
58
+
{% endif %}
49
59
50
60
## Column Templates Are Not Displayed
51
61
@@ -61,7 +71,7 @@ When configured for server binding, the Kendo UI Grid for ASP.NET MVC does not f
61
71
62
72
Not all settings of the DataSource are exposed through the `DataSource` fluent API.
63
73
64
-
**Solution** To gain full control over the DataSource, consider using the [`CustomDataSource`]({% slug customdatasource_aspnetmvc %}) fluent API or the client-side version of the Kendo UI Grid.
74
+
**Solution** To gain full control over the DataSource, consider using the [`CustomDataSource`](https://demos.telerik.com/{{ site.platform }}/grid/custom-datasource) fluent API or the client-side version of the Kendo UI Grid.
65
75
66
76
## Grid Fires Create Actions instead of Update Actions
67
77
@@ -107,10 +117,10 @@ The following example demonstrates how to include JavaScript for the current cul
107
117
</script>
108
118
```
109
119
110
-
For additional information on this issue, refer to the [article on globalization]({% slug overview_globalization_core %}).
120
+
For additional information on this issue, refer to the [article on globalization](https://docs.telerik.com/{{ site.platform }}/globalization/overview).
111
121
112
122
## See Also
113
123
114
-
*[Basic Usage of the Grid HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid)
115
-
*[Using the API of the Grid HtmlHelper for ASP.NET MVC (Demo)](https://demos.telerik.com/aspnet-mvc/grid/api)
124
+
*[Basic Usage of the Grid HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/grid)
125
+
*[Using the API of the Grid HtmlHelper for {{ site.framework }} (Demo)](https://demos.telerik.com/{{ site.platform }}/grid/api)
Copy file name to clipboardExpand all lines: docs/knowledge-base/scale-diagram-to-fit-container.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,13 @@ How can I scale Kendo UI Diagram to fit its container upon resizing?
25
25
26
26
## Solution
27
27
28
-
Create a method to dynamically calculate the Diagram viewport dimensions and scale the Diagram accordingly. Use the [`scale()`](/api/javascript/dataviz/ui/diagram/methods/scale) method of the Diagram.
28
+
Create a method to dynamically calculate the Diagram viewport dimensions and scale the Diagram accordingly. Use the [`zoom()`](/api/javascript/dataviz/ui/diagram/methods/zoom) method of the Diagram.
0 commit comments