This is a migrated thread and some comments may be shown as answers.

PageLayout with repeater

6 Answers 46 Views
PageLayout
This is a migrated thread and some comments may be shown as answers.
moegal
Top achievements
Rank 1
moegal asked on 13 May 2015, 09:52 PM

do you have an example of radpagelayout in a repeater control?  The Master page is using PageLayout as well.

Thanks, Marty

6 Answers, 1 is accepted

Sort by
0
Ivan Zhekov
Telerik team
answered on 19 May 2015, 06:05 AM
Hi, Marty.

Unfortunately, we do not have such example. I can very well see the use of such example, but we don't have one.

Unless you are using "StaticId" properties to any col / row, you should not have any issues.

Regards,
Ivan Zhekov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Ivan Zhekov
Telerik team
answered on 19 May 2015, 06:10 AM
Here is a very quick example of Repeater + PageLayout

<%@ Page Language="C#" AutoEventWireup="true" %>
 
<!DOCTYPE html>
<head runat="server">
    <title>Repeater + PageLayout</title>
</head>
<body>
<form id="form1" runat="server">
 
    <asp:ScriptManager runat="server" />
 
 
    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
        <ItemTemplate>
            <telerik:RadPageLayout runat="server">
                <Rows>
                    <telerik:LayoutRow>
                        <Columns>
                            <telerik:LayoutColumn span="2">
                                Name
                            </telerik:LayoutColumn>
                            <telerik:LayoutColumn span="4">
                                <%# Eval("CategoryName") %>
                            </telerik:LayoutColumn>
                            <telerik:LayoutColumn span="2">
                                Description
                            </telerik:LayoutColumn>
                            <telerik:LayoutColumn span="4">
                                <%# Eval("Description") %>
                            </telerik:LayoutColumn>
                        </Columns>
                    </telerik:LayoutRow>
                </Rows>
            </telerik:RadPageLayout>
        </ItemTemplate>
    </asp:Repeater>
 
    <asp:SqlDataSource
        ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        ID="SqlDataSource1" runat="server"
        SelectCommand="SELECT [CategoryID], [CategoryName], [Description] FROM [Categories]" />
 
</form>
</body>
</html>



Regards,
Ivan Zhekov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
moegal
Top achievements
Rank 1
answered on 19 May 2015, 05:56 PM

Ivan,

Thanks.  Sorry I was not more clear.  I want to have each ITEM as a column not a row.

Marty

0
Ivan Zhekov
Telerik team
answered on 22 May 2015, 07:49 AM
At it's current state RadPageLayout does not support this functionality.

You could use a column with content and repeater to manually render the markup for columns. Would something like this suffice?

Regards,
Ivan Zhekov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
moegal
Top achievements
Rank 1
answered on 08 Jun 2015, 05:51 PM

I would hope you are working on a better solution for this.  Here is what I have done in the mean time.

I have a RadPageLayout around the repeater and then in the ItemTemplate I have the following div:

<div class="t-col t-col-6 t-col-xs-12 t-col-sm-12 t-col-md-6 t-col-lg-6 t-col-xl-6">

my content

</div>

The end result is the same I suppose, jut not very elegant. Can you make a stanalone LayoutColumn control?

Marty

0
Peter Filipov
Telerik team
answered on 11 Jun 2015, 08:34 AM
Hi Marty,

You could add your suggestion to our feedback portal and vote for it.

Regards,
Peter Filipov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
PageLayout
Asked by
moegal
Top achievements
Rank 1
Answers by
Ivan Zhekov
Telerik team
moegal
Top achievements
Rank 1
Peter Filipov
Telerik team
Share this question
or