PDA

View Full Version : [CLOSED] MVC 4 Razor Table Layout.Table



ashleysbuss
Jun 18, 2013, 4:40 PM
Hi Support,

I am having a problem trying to use the layout.table do you have a sample? Say like http://examples2.ext.net/#/Layout/TableLayout/Simple_in_Markup

Thanks,

Ashley

Daniil
Jun 18, 2013, 5:02 PM
Hi @ashleysbuss,

Please clarify what exactly problem are you facing?

Here is an example.

Example

<!DOCTYPE html>
<html>
<head>
<title>Ext.Net.MVC v2 Example</title>
</head>
<body>
@Html.X().ResourceManager()

@(Html.X().Container()
.Height(400)
.Width(400)
.LayoutConfig(new TableLayoutConfig() { Columns = 2 })
.Items(
Html.X().Panel().ColSpan(2).Title("Cell 1").Height(100).Width(400),
Html.X().Panel().RowSpan(2).ColSpan(2).Title("Cell 2").Height(200),
Html.X().Panel().Title("Cell 3").Height(100),
Html.X().Panel().Title("Cell 4").Height(100)
)
)

</body>
</html>

ashleysbuss
Jun 18, 2013, 11:39 PM
That was a clear example that started me on the right path.

Ashley