+1-888-365-2779
Try Now
More in this section

Forums / Deployment / Date Modified Column in Document List

Date Modified Column in Document List

2 posts, 1 answered
  1. Cameron
    Cameron avatar
    42 posts
    Registered:
    27 Jul 2009
    22 Jun 2010
    Link to this post
    Hi... is there a simple way to include the Modified Date in the column list of the DownloadTable control? It already has the basics like name, author, uploaddate, etc..... but I want to display the ModifiedDate.

    Anyone?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Jun 2010
    Link to this post
    Hi Michael Buchsbaum,

    You can map the external template and modify it as shown below.

    <%@ Control Language="C#" %>
     
    <telerik:CssFileLink ID="CssFileLink1" FileName=""
     Media="screen" runat="server" EmbeddedFileName="Telerik.Libraries.Resources.ControlTemplates.Frontend.librariesCommonLayout.css"  />
    test
    <asp:HyperLink ID="backLink" runat="server" Text="<%$Resources:Items_GoBack %>" />
    <asp:Repeater ID="repeater" runat="server">
        <HeaderTemplate>
            <table class="sf_libraryGrid">
                <thead>
                <tr>
                    <th scope="col" id="TitleWrap" runat="server"><asp:Literal ID="Literal1" runat="server" Text="<%$Resources:Items_Title %>"></asp:Literal></th>
                    <th scope="col" id="ExtWrap" runat="server"><asp:Literal ID="Literal2" runat="server" Text="<%$Resources:Items_Extension %>"></asp:Literal></th>
                    <th scope="col" id="AuthorWrap" runat="server"><asp:Literal ID="Literal3" runat="server" Text="<%$Resources:Items_Author %>"></asp:Literal></th>
                    <th scope="col" id="UploadDateWrap" runat="server"><asp:Literal ID="Literal4" runat="server" Text="<%$Resources:Items_UploadDate %>"></asp:Literal></th>
                    <th scope="col" id="SizeWrap" runat="server"><asp:Literal ID="Literal5" runat="server" Text="<%$Resources:Items_Size %>"></asp:Literal></th>
                    <th scope="col" id="TagWrap" runat="server"><asp:Literal ID="Literal6" runat="server" Text="<%$Resources:Items_Tags %>"></asp:Literal></th>
                    <th scope="col" id="DownloadLinkWrap" runat="server"></th>
                     
                    <th scope="col" id="DateModified" runat="server">
                    <asp:Literal ID="Literal7" runat="server" Text="DateModified">
                    </asp:Literal></th>
                </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
                <tr>
                    <th id="TitleWrap" runat="server" scope="row" class="sf_docTitle">
                        <asp:HyperLink ID="DownloadLink" runat="server">
                            <asp:Literal ID="Title" runat="server"></asp:Literal>
                        </asp:HyperLink>
                        <asp:Literal ID="Description" runat="server" />
                    </th>
                    <td id="ExtWrap" runat="server"><asp:Literal id="Extension" runat="server"></asp:Literal></td>
                    <td id="AuthorWrap" runat="server"><asp:Label id="Author" runat="server"></asp:Label></td>
                    <td id="UploadDateWrap" runat="server" class="sf_date">
                        <asp:Literal ID="UploadDate" runat="server" />
                    </td>
                    <td id="SizeWrap" runat="server" class="sf_size"><asp:Literal id="Size" runat="server"></asp:Literal></td>
                    <td id="TagWrap" runat="server">
                        <asp:Repeater id="Tags" runat="server">
                            <ItemTemplate>
                                <asp:HyperLink ID="tagLink" runat="server"></asp:HyperLink>
                            </ItemTemplate>
                        </asp:Repeater>
                    </td>
                    <td id="DownloadLinkWrap" runat="server"><asp:HyperLink ID="FileDownloadLink" runat="server" Text="<%$Resources:Items_Download %>" /></td>
                    <td id="DateModified1" runat="server"><asp:Label ID="DateModifiedLabel" runat="server" Text='<%# Eval("DateModified") %>' /></td>
                     
                </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <telerik:Pager ID="pager1" runat="server">
        <LayoutTemplate>
             <asp:Repeater ID="PageRepeaterLinkButton" runat="server">
                <HeaderTemplate>
                    <ol class="sf_pager">
                    <li><asp:LinkButton ID="PreviousPage" runat="server" Text="<%$Resources:Items_PreviousPage %>"></asp:LinkButton></li>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <asp:LinkButton ID="SingleItem" runat="server" />
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    <li><asp:LinkButton ID="NextPage" runat="server" Text="<%$Resources:Items_NextPage %>"></asp:LinkButton></li>
                    </ol>
                </FooterTemplate>
            </asp:Repeater>
            <asp:Repeater ID="PageRepeaterHyperLink" runat="server">
                <HeaderTemplate>
                    <ol class="sf_pager">
                    <li><asp:HyperLink ID="PreviousPage" runat="server" Text="<%$Resources:Items_PreviousPage %>"></asp:HyperLink></li>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
                        <asp:HyperLink ID="SingleItem" runat="server" />
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    <li><asp:HyperLink ID="NextPage" runat="server" Text="<%$Resources:Items_NextPage %>"></asp:HyperLink></li>
                    </ol>
                </FooterTemplate>
            </asp:Repeater>
        </LayoutTemplate>
    </telerik:Pager>


    You could add all other properties that IContent object has using the same way

    Regards,
    Ivan Dimitrov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
    Answered
2 posts, 1 answered