PageLayout with repeater

7 posts, 0 answers
  1. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 13 May 2015 Link to this post

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

    Thanks, Marty

  2. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 19 May 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 19 May 2015 Link to this post

    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
  5. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 19 May 2015 in reply to Ivan Zhekov Link to this post

    Ivan,

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

    Marty

  6. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 22 May 2015 Link to this post

    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
  7. moegal
    moegal avatar
    273 posts
    Member since:
    Jul 2007

    Posted 08 Jun 2015 in reply to Ivan Zhekov Link to this post

    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

  8. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 11 Jun 2015 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017