Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to apply a certain layout to the required view

$
0
0

It is necessary to handle the HtmlApplication.resolveLayoutController event and specify the required layout controller that must be used to provide a layout markup for the given view. All predefined layout controllers that are available for the current platform are contained in the availableLayoutControllers argument of the event handler. The main idea is to find the required controller in this collection and set it to the layoutController parameter in the resolveLayoutController event handler. In addition, please make sure that links to files that are related to the required layout are added to the index.html file.

This example demonstrates how to apply the Empty layout to the About view.

Starting with 14.1, it is necessary to set all available layout controllers via the HtmlApplication.layoutSet options. For the layout controllers that should be set using the resolveLayoutController event handler, set the customResolveRequired option to true as with the Empty layout controller.

See also:
jQuery.grep


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>