Skip to content

Commit

Permalink
docs(grid, combobox): adjust optimization articles
Browse files Browse the repository at this point in the history
  • Loading branch information
P1l3T0 committed Aug 28, 2024
1 parent ecada48 commit e50a10f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions controls/combobox/troubleshooting/optimizing-the-combobox.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ position: 1

The best approach to optimize the performance speed of Telerik RadComboBox when using huge amount of items is using the **load-on-demand** feature. The **load-on-demand** mechanism loads the items only when the user types or clicks in the field or the drop-arrow image. You can also load the items only upon clicking on the drop arrow. To do this you should set the **ShowDropDownOnTextboxClick** property to false. For even faster load of the page, you can leave the combobox empty when it is first rendered on the page. Items will be added as soon as the user clicks in the input field, the drop-arrow image or types some text into the input field. In other words, you can add the items only in the **ItemsRequested** event handler or via **WebService**.

It is important to test the performance only when debugging is disabled. Set `<compilation debug="false" />` in the web.config. When it is true, the MS AJAXdebugging code causes a severe performance hit on the client-side. The fact that most of the editor functionalities implemented in JavaScript, thus resulting in 10 times slower performance compared to native compiled code.

When using the load-on-demand mechanism with **ItemsRequested** event you should:

1. Set the **EnableLoadOnDemand** property to true.
Expand Down
4 changes: 3 additions & 1 deletion controls/grid/performance/grid-performance-optimizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ When you present large number of records at once you will see delays in the grid

7. You could use [RadAjaxManager]({%slug ajaxmanager/overview%}) controls to Ajax-ify the Grid instance and thus to receive partial updates from the service only for the Grid instance, not the whole page.

8. Finally could use [RadCompression ]({%slug controls/radcompression%}) to compress the responce from the server in case of Ajax and service responses.
8. It is important to test the performance only when debugging is disabled. Set `<compilation debug="false" />` in the web.config. When it is true, the MS AJAXdebugging code causes a severe performance hit on the client-side. The fact that most of the editor functionalities implemented in JavaScript, thus resulting in 10 times slower performance compared to native compiled code.

9. Finally could use [RadCompression ]({%slug controls/radcompression%}) to compress the responce from the server in case of Ajax and service responses.

## Steps to optimize the server performance:

Expand Down
2 changes: 2 additions & 0 deletions getting-started/performance/optimizing-performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ The ScriptManager and the StyleSheetManager controls also enable you to download

Downloading from the CDN, however, will result in a request for each individual file (script, stylesheet, font, and so on). You can improve the CDN performance even further by instructing the controls to fetch a combined resource of all scripts and base stylesheets for all the controls in a single request by toggling the `Telerik.ScriptManager.TelerikCdn.CombinedResource` and `Telerik.StyleSheetManager.TelerikCdn.CombinedResource` [`appSettings` keys]({% slug general-information/web-config-settings-overview %}) to `enabled`. This configuration is exposed for an individual instance through the `CdnSettings-CombinedResource` property.

It is important to test the performance only when debugging is disabled. Set `<compilation debug="false" />` in the web.config. When it is true, the MS AJAXdebugging code causes a severe performance hit on the client-side. The fact that most of the editor functionalities implemented in JavaScript, thus resulting in 10 times slower performance compared to native compiled code.

The following table lists Telerik UI for ASP.NET AJAX controls and the resources for their performance optimization.

|Controls|Solutions for Performance Optimization
Expand Down

0 comments on commit e50a10f

Please sign in to comment.