|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Timesheet.aspx.cs" Inherits="WebApplication1.Timesheet" MasterPageFile="~/Site.Master" %>
<asp:Content runat="server" ID="content" ContentPlaceHolderID="MainContent">
<telerik:RadAjaxPanel runat="server" ID="timeSheetPanel">
<telerik:RadGrid ID="timeSheet" runat="server" AutoGenerateColumns="False" OnNeedDataSource="timeSheet_NeedDataSource" CellSpacing="0" GridLines="None" AllowSorting="True">
<MasterTableView>
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn HeaderStyle-Width="60" ItemStyle-Width="60" DataField="ClockIn" DataFormatString="{0:MM/dd hh:mm tt}" HeaderText="Clock In"></telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderStyle-Width="60" ItemStyle-Width="60" DataField="ClockOut" DataType="System.DateTime" DataFormatString="{0:MM/dd hh:mm tt}" HeaderText="Clock Out"></telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderStyle-Width="60" ItemStyle-Width="60" DataField="Elapsed" DataType="System.TimeSpan" HeaderText="Elapsed" DataFormatString="{0:h\:mm\:ss}">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
</telerik:RadAjaxPanel>
</asp:Content>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Jeff Fritz is a senior program manager in Microsoft’s Developer Division working on the .NET Community Team. As a long time web developer and application architect with experience in large and small applications across a variety of verticals, he knows how to build for performance and practicality. Four days a week, you can catch Jeff hosting a live video stream called 'Fritz and Friends' at
twitch.tv/csharpfritz. You can also learn from Jeff on WintellectNow and Pluralsight, follow him on twitter @csharpfritz, and read his blog at
jeffreyfritz.com