View Full Version : [CLOSED] Viewport and Master page

Apr 08, 2014, 5:09 AM
Hello everyone,

Could you add to Ext.net examples a sample of using Viewport and Master page?
It would be nice if it were presented the same way you did basic examples.

In case you already have it, could you post a link?

Thank you.

Apr 08, 2014, 5:31 PM
Hi @rbtceo,

Sorry, I didn't quite understand the idea. Could you, please, clarify what you would like to see in that example?

Apr 08, 2014, 7:55 PM
Here is a very basic example.

Master Page

<%@ Master Language="C#" %>

<!DOCTYPE html>

<head runat="server">
<title>Ext.NET v2 Example</title>
<form runat="server">
<ext:ResourceManager runat="server" />

<ext:Viewport runat="server">
<ext:VBoxLayoutConfig Align="Stretch" />
<asp:ContentPlaceHolder ID="Row1" runat="server" />
<asp:ContentPlaceHolder ID="Row2" runat="server" />

Content Page

<%@ Page Language="C#" MasterPageFile="~/Site1.master" %>

<asp:Content ContentPlaceHolderID="Row1" runat="server">
<ext:Panel runat="server" Title="Panel 1" Flex="1" />
<asp:Content ContentPlaceHolderID="Row2" runat="server">
<ext:Panel runat="server" Title="Panel 2" Flex="2" />

Apr 08, 2014, 10:58 PM
Thank you for the example.

The idea was to add an example with a master page to http://examples2.ext.net/#/Viewport/

The thread can be marked as solved for now.

Apr 09, 2014, 1:35 AM
Ok, thank you for the suggestion.