<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Journal.aspx.cs" Inherits="LSTDeveloper.Site.Client.Journal" MasterPageFile="~/Site1.Master"  %>


<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">

</asp:Content>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="phMain">

    <div class="contentSectionLeft">
        <h2>JOURNAL HISTORY</h2>
        <telerik:RadGrid ID="RadGrid1" runat="server" 
            AllowPaging="True" AllowSorting="True" GridLines="None" 
            ShowGroupPanel="True" Style="Width:795px;margin-left:15px"
        DataSourceID="XmlDataSource2" AutoGenerateDeleteColumn="True" ShowStatusBar="true"
            AutoGenerateEditColumn="True" >
                <MasterTableView autogeneratecolumns="False" EditMode="PopUp" CommandItemDisplay="Top" 
                datasourceid="XmlDataSource2">
                    <NoRecordsTemplate>
                         <div>No journal entries exist yet.  Click "Add new record" above.</div>
                    </NoRecordsTemplate>                
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px"></HeaderStyle>
                    </ExpandCollapseColumn>
                    <commanditemsettings addnewrecordtext="Add new Journal entry" />
                    <Columns>
                        <telerik:GridBoundColumn DataField="Title" HeaderText="Title" 
                SortExpression="Title" UniqueName="Title">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Private" HeaderText="Private" 
                SortExpression="Private" UniqueName="Private">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Created" HeaderText="Created" 
                SortExpression="Created" UniqueName="Created">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Replies" HeaderText="Replies" 
                SortExpression="Replies" UniqueName="Replies">
                        </telerik:GridBoundColumn>                        
                        <telerik:GridBoundColumn DataField="LastReply" HeaderText="LastReply" 
                            SortExpression="LastReply" UniqueName="LastReply">
                        </telerik:GridBoundColumn>
                    </Columns>
                    <EditFormSettings EditFormType="WebUserControl" 
                        UserControlName="Journal.ascx" 
                        InsertCaption="New Journal Entry" PopUpSettings-Modal="true" 
                        CaptionFormatString="Journal Entry On {0}"
                CaptionDataField="Created" >
                        <EditColumn UniqueName="EditCommandColumn1"></EditColumn>

<PopUpSettings Modal="True"></PopUpSettings>
                    </EditFormSettings>                
                </MasterTableView>
                <clientsettings allowdragtogroup="True">
                </clientsettings>
            </telerik:RadGrid>
    </div>
    

    <asp:XmlDataSource ID="XmlDataSource2" runat="server" 
        DataFile="~/TestDataSources/ClientJournal.xml"></asp:XmlDataSource>
        
    <div class="contentSection" style="clear:both">
        <h4>DEV NOTES</h4>
            <ul>
                <li>Private items (title) will be red, non private will be green</li>
                <li>Default sort will be by created date and last reply date, with newest on top.</li>
                <li>Each item &quot;title&quot; will open to a detail view if there are replies, otherwise it 
                    will open the &quot;edit entry form&quot; above.</li>
                <li>LastReply will actually say &quot;Last Reply&quot;</li>
                <li>TO DO<br />
                    1. Decide on default settings for the grid (category grouping on/off/available)?<br />
                </li>
            </ul>  
    </div>
    
    <div class="clear"></div>
</asp:Content>