PDA

View Full Version : [CLOSED] Viewport and Master page



rbtceo
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.

Daniil
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?

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

Master Page

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

<!DOCTYPE html>

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

<ext:Viewport runat="server">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Content>
<asp:ContentPlaceHolder ID="Row1" runat="server" />
<asp:ContentPlaceHolder ID="Row2" runat="server" />
</Content>
</ext:Viewport>
</form>
</body>
</html>

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>
<asp:Content ContentPlaceHolderID="Row2" runat="server">
<ext:Panel runat="server" Title="Panel 2" Flex="2" />
</asp:Content>

rbtceo
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.

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