RadTab Strip not causing Postback

2 posts, 0 answers
  1. Justin
    Justin avatar
    11 posts
    Member since:
    Jul 2012

    Posted 19 Aug 2014 Link to this post

    I am unable to figure out what could be causing my rad tab button to not cause a postback. Any help would be greatly appreciated. 
    <%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Base/Main.Master" AutoEventWireup="true" CodeBehind="Agreement.aspx.cs" Inherits="NationalFundingDev.AgreementPage" %>
     
    <asp:Content ID="Content1" ContentPlaceHolderID="cphTitle" runat="server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="cphAJAXManager" runat="server">
        <telerik:RadAjaxManager runat="server" ID="ram">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="rtsAgreementOptions">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rtsAgreementOptions" />
                        <telerik:AjaxUpdatedControl ControlID="rmpAgreementOptions" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rgAgreementFundingOverView">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgAgreementFundingOverView" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rgOverViewDocuments">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgOverViewDocuments" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rgFundedSites">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgFundedSites" LoadingPanelID="ralp" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rcbctContacts">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgctContact" LoadingPanelID="ralp" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rcbcbContacts">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgcbContact" LoadingPanelID="ralp" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rcbubContacts">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rbubContactRemove" />
                        <telerik:AjaxUpdatedControl ControlID="rcbubContacts" />
                        <telerik:AjaxUpdatedControl ControlID="rgubContact" LoadingPanelID="ralp" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rcbutContacts">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rbutContactRemove" />
                        <telerik:AjaxUpdatedControl ControlID="rcbutContacts" />
                        <telerik:AjaxUpdatedControl ControlID="rgutContact" LoadingPanelID="ralp" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rbubContactRemove">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rbubContactRemove" />
                        <telerik:AjaxUpdatedControl ControlID="rcbubContacts" />
                        <telerik:AjaxUpdatedControl ControlID="rgubContact" LoadingPanelID="ralp" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rbutContactRemove">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rbutContactRemove" />
                        <telerik:AjaxUpdatedControl ControlID="rcbutContacts" />
                        <telerik:AjaxUpdatedControl ControlID="rgutContact" LoadingPanelID="ralp" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rgStudiesSupport">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgStudiesSupport" LoadingPanelID="ralp" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rbUploadDocuments">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgAgreementDocuments" LoadingPanelID="ralp" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rgAgreementDocuments">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgAgreementDocuments" LoadingPanelID="ralp" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="ralp" runat="server" Skin="BlackMetroTouch" />
    </asp:Content>
    <asp:Content ID="Content3" ContentPlaceHolderID="cphImage" runat="server">
        <div id="divImage" style="padding-top: 10px; padding-right: 5px;">
            <asp:Image runat="server" ID="imgCustLogo" Height="100px" Width="100px" />
        </div>
    </asp:Content>
    <asp:Content ID="Content4" ContentPlaceHolderID="cphInformation" runat="server">
        <b>Agreement: <%: agreement.PurchaseOrderNumber %></b>
        <br />
        <a href="<%: String.Format("Customer.aspx?CustomerID={0}", agreement.Customer.CustomerID) %>">Customer: <%: agreement.Customer.Code %> - <%: agreement.Customer.Name %></a><br />
        FBMS Customer Number: <%: agreement.Customer.Number %><br />
        <a href="<%# agreement.Customer.URL %>" target="_blank">Customer Website</a><br />
        <p style="color: orange; padding: 0px; margin: 0px;"><%: Tags %></p>
    </asp:Content>
    <asp:Content ID="Content5" ContentPlaceHolderID="cphSidePanel" runat="server">
        <telerik:RadTabStrip runat="server" ID="rtsAgreementOptions" MultiPageID="rmpAgreementOptions" Skin="BlackMetroTouch" Width="150px" OnTabClick="rtsAgreementOptions_TabClick" >
            <Tabs>
                <telerik:RadTab Text="Overview" Width="150px" Selected="true" TabIndex="0" />
                <telerik:RadTab Text="Contacts" Width="150px" TabIndex="1" />
                <telerik:RadTab Text="Mods" Width="150px" TabIndex="2" />
                <telerik:RadTab Text="Funded Sites" Width="150px" TabIndex="3" />
                <telerik:RadTab Text="Studies / Support" Width="150px" TabIndex="4" />
                <telerik:RadTab Text="Documents" Width="150px" TabIndex="5" />
            </Tabs>
        </telerik:RadTabStrip>
    </asp:Content>
    <asp:Content ID="Content6" ContentPlaceHolderID="cphBody" runat="server">
        <telerik:RadMultiPage runat="server" ID="rmpAgreementOptions" RenderSelectedPageOnly="true">
            <!-- OverView -->
            <telerik:RadPageView ID="rpvOverView" runat="server" Selected="true">
                <table style="width: 100%;">
                    <tr>
                        <td valign="top" style="width: 500px;">
                            <div id="divAgreementInfo" class="SectionContent" style="width: 500px;">
                                <h2>Agreement Information</h2>
                                <telerik:RadAjaxPanel runat="server" ID="rapAgreementInfo" OnLoad="rapAgreementInfo_Load">
                                    <table style="width: 100%;">
                                        <tr>
                                            <td valign="top">
                                                <table>
                                                    <tr>
                                                        <td align="right"><b>Start Date:</b></td>
                                                        <td>
                                                            <asp:Literal runat="server" ID="ltlAgreementStartDate" /></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right"><b>End Date:</b></td>
                                                        <td>
                                                            <asp:Literal runat="server" ID="ltlAgreementEndDate" /></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right"><b>Purchase Order #:</b></td>
                                                        <td>
                                                            <asp:Literal runat="server" ID="ltlPurchaseOrderNumber" /></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right"><b>MPC:</b></td>
                                                        <td>
                                                            <asp:Literal runat="server" ID="ltlMPC" /></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right"><b>FBMS:</b></td>
                                                        <td>
                                                            <asp:Literal runat="server" ID="ltlFBMS" /></td>
                                                    </tr>
                                                </table>
     
                                            </td>
                                            <td style="padding-left: 10px;" valign="top">
                                                <center><b style="font-size:medium;">Signed</b></center>
                                                <table>
                                                    <tr>
                                                        <td align="right"><b>USGS:</b></td>
                                                        <td>
                                                            <asp:Literal runat="server" ID="ltlUSGSSigned" /></td>
                                                    </tr>
                                                    <tr>
                                                        <td align="right"><b>Customer:</b></td>
                                                        <td>
                                                            <asp:Literal runat="server" ID="ltlCustomerSigned" /></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%">
                                        <tr>
                                            <td></td>
                                            <td align="center"><b>USGS CWP</b></td>
                                            <td align="center"><b>Customer</b></td>
                                            <td align="center"><b>Other</b></td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="background-color: #acdbe3; color: black;">Funded Sites<br />
                                                Studies/Support<br />
                                                <b>Total</b></td>
                                            <td align="center" style="background-color: #acdbe3; color: black;">
                                                <asp:Literal runat="server" ID="ltlSiteFundingUSGSCWP" /><br />
                                                <asp:Literal runat="server" ID="ltlStudiesFundingUSGSCWP" /><br />
                                                <b>
                                                    <asp:Literal runat="server" ID="ltlUSGSCWPFundingSum" /></b></td>
                                            <td align="center" style="background-color: #acdbe3; color: black;">
                                                <asp:Literal runat="server" ID="ltlSiteFundingCustomer" /><br />
                                                <asp:Literal runat="server" ID="ltlStudiesFundingCustomer" /><br />
                                                <b>
                                                    <asp:Literal runat="server" ID="ltlCustomerFundingSum" /></b></td>
                                            <td align="center" style="background-color: #acdbe3; color: black;">0<br />
                                                0<br />
                                                <b>0</b></td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="background-color: black; color: white;"><b>Funding Total</b></td>
                                            <td align="center" style="background-color: black; color: white;">
                                                <asp:Literal runat="server" ID="ltlFundingUSGSCWP" /></td>
                                            <td align="center" style="background-color: black; color: white;">
                                                <asp:Literal runat="server" ID="ltlFundingCustomer" /></td>
                                            <td align="center" style="background-color: black; color: white;">
                                                <asp:Literal runat="server" ID="ltlFundingOther" /></td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="background-color: lightgray; color: black;"><b>Difference</b></td>
                                            <td align="center" style="background-color: lightgray; color: black;">
                                                <asp:Literal runat="server" ID="ltlDifferenceUSGS" /></td>
                                            <td align="center" style="background-color: lightgray; color: black;">
                                                <asp:Literal runat="server" ID="ltlDifferenceCustomer" /></td>
                                            <td align="center" style="background-color: lightgray; color: black;">
                                                <asp:Literal runat="server" ID="ltlDifferenceOther" /></td>
                                        </tr>
                                    </table>
                                </telerik:RadAjaxPanel>
                            </div>
                            <br />
                            <div id="divDocuments" class="SectionContent">
                                <h2>Documents</h2>
                                <telerik:RadGrid ID="rgOverViewDocuments" Width="100%" AutoGenerateColumns="false" runat="server" OnNeedDataSource="rgAgreementDocuments_NeedDataSource" Skin="BlackMetroTouch" ShowHeader="false">
                                    <MasterTableView DataKeyNames="Path">
                                        <Columns>
                                            <telerik:GridTemplateColumn HeaderText="Agreement Documents">
                                                <ItemTemplate>
                                                    <a style="color: #4a95a1;" href='<%# Eval("URL") %>' target="_blank"><%# Eval("Name") %></a>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                                <br />
                            </div>
                        </td>
                        <td valign="top">
                            <div id="divFunding" class="SectionContent">
                                <h2>Funding</h2>
                                <telerik:RadGrid runat="server" ID="rgAgreementFundingOverView" AutoGenerateColumns="false" OnNeedDataSource="rgAgreementFundingOverView_NeedDataSource" OnDetailTableDataBind="rgAgreementFundingOverView_DetailTableDataBind" Width="100%">
                                    <MasterTableView DataKeyNames="AgreementModID" HierarchyDefaultExpanded="true">
                                        <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" HorizontalAlign="Center" />
                                        <DetailTables>
                                            <telerik:GridTableView runat="server" ShowHeader="false">
                                                <Columns>
                                                    <telerik:GridTemplateColumn>
                                                        <ItemTemplate>
                                                            <table width="100%">
                                                                <tr>
                                                                    <td></td>
                                                                    <td align="center"><b>USGS CWP</b></td>
                                                                    <td align="center"><b>Customer</b></td>
                                                                    <td align="center"><b>Other</b></td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right" style="background-color: #acdbe3;">Funded Sites<br />
                                                                        Studies/Support<br />
                                                                        <b>Total</b></td>
                                                                    <td align="center" style="background-color: #acdbe3;"><%# String.Format("{0:c0}", Eval("SiteFundingUSGSCWP")) %><br />
                                                                        <%# String.Format("{0:c0}", Eval("StudiesFundingUSGSCWP")) %><br />
                                                                        <b><%# String.Format("{0:c0}", Convert.ToDouble(Eval("SiteFundingUSGSCWP")) + Convert.ToDouble(Eval("StudiesFundingUSGSCWP"))) %></b></td>
                                                                    <td align="center" style="background-color: #acdbe3;"><%# String.Format("{0:c0}", Eval("SiteFundingCustomer")) %><br />
                                                                        <%# String.Format("{0:c0}", Eval("StudiesFundingCustomer")) %><br />
                                                                        <b><%# String.Format("{0:c0}",Convert.ToDouble(Eval("SiteFundingCustomer")) + Convert.ToDouble(Eval("StudiesFundingCustomer"))) %></b></td>
                                                                    <td align="center" style="background-color: #acdbe3;"><%# String.Format("{0:c0}", 0) %><br />
                                                                        <%# String.Format("{0:c0}", 0) %><br />
                                                                        <b><%# String.Format("{0:c0}", 0) %></b></td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right" style="background-color: black; color: white;"><b>Funding Total</b></td>
                                                                    <td align="center" style="background-color: black; color: white;"><%# String.Format("{0:c0}",Eval("FundingUSGSCWP")) %></td>
                                                                    <td align="center" style="background-color: black; color: white;"><%# String.Format("{0:c0}", Eval("FundingCustomer")) %></td>
                                                                    <td align="center" style="background-color: black; color: white;"><%# String.Format("{0:c0}", Eval("FundingOther")) %></td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right" style="background-color: lightgray;"><b>Difference</b></td>
                                                                    <td align="center" style="background-color: lightgray;"><%# String.Format("{0:c0}", Convert.ToDouble(Eval("FundingUSGSCWP")) - Convert.ToDouble(Eval("SiteFundingUSGSCWP")) - Convert.ToDouble(Eval("StudiesFundingUSGSCWP"))) %></td>
                                                                    <td align="center" style="background-color: lightgray;"><%# String.Format("{0:c0}", Convert.ToDouble(Eval("FundingCustomer")) - Convert.ToDouble(Eval("SiteFundingCustomer")) - Convert.ToDouble(Eval("StudiesFundingCustomer"))) %></td>
                                                                    <td align="center" style="background-color: lightgray;"><%# String.Format("{0:c0}", Eval("FundingOther")) %></td>
                                                                </tr>
                                                            </table>
                                                        </ItemTemplate>
                                                    </telerik:GridTemplateColumn>
                                                </Columns>
                                            </telerik:GridTableView>
                                        </DetailTables>
                                        <Columns>
                                            <telerik:GridBoundColumn HeaderText="" DataField="ModName" HeaderStyle-Width="160px" ItemStyle-HorizontalAlign="Right" ItemStyle-Font-Bold="true" />
                                            <telerik:GridBoundColumn HeaderText="USGS CWP" DataField="FundingUSGSCWP" DataFormatString="{0:c0}" />
                                            <telerik:GridBoundColumn HeaderText="Customer" DataField="FundingCustomer" DataFormatString="{0:c0}" />
                                            <telerik:GridBoundColumn HeaderText="Other" DataField="FundingOther" DataFormatString="{0:c0}" />
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                            </div>
                        </td>
                    </tr>
                </table>
                <div class="SectionContent">
                    <h2>Contacts</h2>
                    <table style="width: 100%;">
                        <tr>
                            <td style="width: 50%;">
                                <telerik:RadGrid runat="server" ID="rgctContactOverView" OnNeedDataSource="rgctContact_NeedDataSource" Width="100%" AutoGenerateColumns="false">
                                    <MasterTableView NoDetailRecordsText="There are no customer technical contacts assigned to this agreement." NoMasterRecordsText="There are no customer technical contacts assigned to this agreement.">
                                        <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" HorizontalAlign="Center" />
                                        <Columns>
                                            <telerik:GridTemplateColumn HeaderText="Customer Technical Contact">
                                                <ItemTemplate>
                                                    <b><%# ContactName(Eval("Salutation"), Eval("FirstName"), Eval("MiddleName"), Eval("LastName")) %></b><br />
                                                    <%# Eval("Title") %><br />
                                                    Work:<%# PhoneFormat(Eval("PhoneWork")) %><br />
                                                    Mobile:<%# PhoneFormat(Eval("PhoneMobile")) %><br />
                                                    Fax:<%# PhoneFormat(Eval("PhoneFax")) %><br />
                                                    Email:<a href='mailto:<%# Eval("Email") %>'><%# Eval("Email") %></a><br />
                                                    <%# Eval("StreetOne") %> <%# Eval("StreetTwo") %><br />
                                                    <%# Eval("City") %>, <%# Eval("State") %> <%# Eval("ZipCode") %>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                            </td>
                            <td style="width: 50%;">
                                <telerik:RadGrid runat="server" ID="rgcbContactOverView" OnNeedDataSource="rgcbContact_NeedDataSource" Width="100%" AutoGenerateColumns="false">
                                    <MasterTableView NoDetailRecordsText="There are no customer billing contacts assigned to this agreement." NoMasterRecordsText="There are no customer billing contacts assigned to this agreement.">
                                        <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" HorizontalAlign="Center" />
                                        <Columns>
                                            <telerik:GridTemplateColumn HeaderText="Customer Billing Contact">
                                                <ItemTemplate>
                                                    <b><%# ContactName(Eval("Salutation"), Eval("FirstName"), Eval("MiddleName"), Eval("LastName")) %></b><br />
                                                    <%# Eval("Title") %><br />
                                                    Work:<%# PhoneFormat(Eval("PhoneWork")) %><br />
                                                    Mobile:<%# PhoneFormat(Eval("PhoneMobile")) %><br />
                                                    Fax:<%# PhoneFormat(Eval("PhoneFax")) %><br />
                                                    Email:<a href='mailto:<%# Eval("Email") %>'><%# Eval("Email") %></a><br />
                                                    <%# Eval("StreetOne")%> <%# Eval("StreetTwo") %><br />
                                                    <%# Eval("City") %>, <%# Eval("State") %> <%# Eval("ZipCode") %>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 50%;">
                                <telerik:RadGrid runat="server" ID="rgutContactOverView" OnNeedDataSource="rgutContact_NeedDataSource" Width="100%" AutoGenerateColumns="false">
                                    <MasterTableView NoDetailRecordsText="There are no usgs technical contacts assigned to this agreement." NoMasterRecordsText="There are no USGS technical contacts assigned to this agreement.">
                                        <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" HorizontalAlign="Center" />
                                        <Columns>
                                            <telerik:GridTemplateColumn HeaderText="USGS Technical Contact">
                                                <ItemTemplate>
                                                    <b><%# Eval("FullName") %></b>
                                                    <%# Eval("Title") %><br />
                                                    Work:<%# PhoneFormat(Eval("PhoneWork")) %><br />
                                                    Mobile:<%# PhoneFormat(Eval("PhoneMobile")) %><br />
                                                    Fax:<%# PhoneFormat(Eval("PhoneFax")) %><br />
                                                    Email:<a href='mailto:<%# Eval("Email") %>'><%# Eval("Email") %></a><br />
                                                    <%# Eval("StreetOne").ToString() + " " + Eval("StreetTwo").ToString() %><br />
                                                    <%# Eval("City") %>, <%# Eval("State") %> <%# Eval("ZipCode") %>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                            </td>
                            <td style="width: 50%;">
                                <telerik:RadGrid runat="server" ID="rgubContactOverView" OnNeedDataSource="rgubContact_NeedDataSource" Width="100%" AutoGenerateColumns="false">
                                    <MasterTableView NoDetailRecordsText="There are no usgs billing contacts assigned to this agreement." NoMasterRecordsText="There are no USGS billing contacts assigned to this agreement.">
                                        <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" HorizontalAlign="Center" />
                                        <Columns>
                                            <telerik:GridTemplateColumn HeaderText="USGS Billing Contact">
                                                <ItemTemplate>
                                                    <b><%# Eval("FullName") %></b>
                                                    <%# Eval("Title") %><br />
                                                    Work:<%# PhoneFormat(Eval("PhoneWork")) %><br />
                                                    Mobile:<%# PhoneFormat(Eval("PhoneMobile")) %><br />
                                                    Fax:<%# PhoneFormat(Eval("PhoneFax")) %><br />
                                                    Email:<a href='mailto:<%# Eval("Email") %>'><%# Eval("Email") %></a><br />
                                                    <%# Eval("StreetOne").ToString() + " " + Eval("StreetTwo").ToString() %><br />
                                                    <%# Eval("City") %>, <%# Eval("State") %> <%# Eval("ZipCode") %>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                            </td>
                        </tr>
                    </table>
                </div>
                <table style="width: 100%;">
                    <tr>
                        <td colspan="2">
                            <div class="SectionContent">
                                <h2>Studies Funding</h2>
                                <telerik:RadGrid runat="server" ID="rgStudiesFundingOverView" AutoGenerateColumns="false" OnNeedDataSource="rgStudiesFundingOverView_NeedDataSource">
                                    <MasterTableView NoDetailRecordsText="This agreement does not have any Studies Funding tied to it." NoMasterRecordsText="This agreement does not have any Studies Funding tied to it.">
                                        <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" />
                                        <Columns>
                                            <telerik:GridBoundColumn HeaderText="Basis" DataField="BasisProjectNumber" />
                                            <telerik:GridBoundColumn HeaderText="Code" DataField="Code" />
                                            <telerik:GridBoundColumn HeaderText="Description" DataField="Description" />
                                            <telerik:GridBoundColumn HeaderText="USGS" DataField="FundingUSGSCWP" DataFormatString="{0:c0}" />
                                            <telerik:GridBoundColumn HeaderText="Customer" DataField="FundingCustomer" DataFormatString="{0:c0}" />
                                            <telerik:GridBoundColumn HeaderText="Remarks" DataField="Remarks" HeaderStyle-Width="300px" FooterStyle-HorizontalAlign="Left" />
                                        </Columns>
                                        <GroupByExpressions>
                                            <telerik:GridGroupByExpression>
                                                <SelectFields>
                                                    <telerik:GridGroupByField FieldName="Number" FieldAlias="Mod" />
                                                </SelectFields>
                                                <GroupByFields>
                                                    <telerik:GridGroupByField FieldName="Number" />
                                                </GroupByFields>
                                            </telerik:GridGroupByExpression>
                                        </GroupByExpressions>
                                    </MasterTableView>
                                </telerik:RadGrid>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div class="SectionContent">
                                <h2>Site Funding</h2>
                                <telerik:RadGrid runat="server" ID="rgSiteFundingOverView" AutoGenerateColumns="false" OnNeedDataSource="rgSiteFundingOverView_NeedDataSource">
                                    <MasterTableView NoDetailRecordsText="This agreement does not have any Site Funding tied to it." NoMasterRecordsText="This agreement does not have any Site Funding tied to it.">
                                        <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" />
                                        <Columns>
                                            <telerik:GridTemplateColumn HeaderStyle-Width="20px">
                                                <ItemTemplate>
                                                    <asp:Image runat="server" ID="imgNSIP" Height="20" Width="20" ImageUrl='<%# NSIPImageURL(Eval("NSIPScore")) %>' Visible='<%# NSIPImageVisible(Eval("NSIPScore")) %>' />
                                                    <telerik:RadToolTip runat="server" ID="rttNSIPImage" TargetControlID="imgNSIP" ShowEvent="OnMouseOver"
                                                        OffsetX="0" OffsetY="0" HideEvent="LeaveToolTip" HideDelay="0"
                                                        Animation="None" Position="TopCenter" RelativeTo="Element" Skin="BlackMetroTouch">
                                                        NSIP-Eligible Site
                                                    </telerik:RadToolTip>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridBoundColumn HeaderText="Number" DataField="SiteNumber" />
                                            <telerik:GridBoundColumn HeaderText="Name" DataField="SiteName" />
                                            <telerik:GridBoundColumn HeaderText="Code" DataField="Code" />
                                            <telerik:GridBoundColumn HeaderText="Units" DataField="CollectionUnits" />
                                            <telerik:GridBoundColumn HeaderText="Difficulty Factor" DataField="DifficultyFactor" />
                                            <telerik:GridBoundColumn HeaderText="USGS" DataField="FundingUSGSCWP" DataFormatString="{0:c0}" />
                                            <telerik:GridBoundColumn HeaderText="Customer" DataField="FundingCustomer" DataFormatString="{0:c0}" />
                                            <telerik:GridBoundColumn HeaderText="Remarks" DataField="Remarks" FooterStyle-HorizontalAlign="Left" />
                                        </Columns>
                                        <GroupByExpressions>
                                            <telerik:GridGroupByExpression>
                                                <SelectFields>
                                                    <telerik:GridGroupByField FieldName="ModNumber" FieldAlias="Mod" />
                                                </SelectFields>
                                                <GroupByFields>
                                                    <telerik:GridGroupByField FieldName="ModNumber" />
                                                </GroupByFields>
                                            </telerik:GridGroupByExpression>
                                        </GroupByExpressions>
                                    </MasterTableView>
                                </telerik:RadGrid>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div class="SectionContent">
                                <h2>Funded Sites Map</h2>
                                <asp:HiddenField runat="server" ID="hfMap" ClientIDMode="Static" />
                                <div id="map" style="height: 500px; width: 100%;"></div>
                                <style type="text/css">
                                    .legend {
                                        width: 175px;
                                        color:black;
                                        background-color: white;
                                        /* IE 8 */
                                        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
                                        /* IE 5-7 */
                                        filter: alpha(opacity=80);
                                        /* Netscape */
                                        -moz-opacity: 0.8;
                                        /* Safari 1.x */
                                        -khtml-opacity: 0.8;
                                        /* Good browsers */
                                        opacity: 0.8;
                                        -moz-border-radius: 2%;
                                        -webkit-border-radius: 2%;
                                        -khtml-border-radius: 2%;
                                        border-radius: 2%;
                                        padding: 10px;
                                        vertical-align: bottom;
                                    }
                                </style>
                                <script type="text/javascript">
                                    //Wait for the Website to load
                                    $(document).ready(function () {
                                        //------------------MAP SECTION -----------------------//
                                        //Create a map object
                                        var map = L.map('map').setView([52, -98], 3);
                                        //Set the Tile Layer and add it to map
                                        L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Physical_Map/MapServer/tile/{z}/{y}/{x}', {
                                            maxZoom: 8,
                                            minZoom: 2
                                        }).addTo(map);;
                                        //Add the Legend
                                        var legend = L.control({ position: 'topright' });
                                        legend.onAdd = function (map) {
                                            var div = L.DomUtil.create('div', 'legend');
                                            div.innerHTML = '<center><b>Legend</b></center><hr/>' +
                                                            '<table>' +
                                                            '<tr><td><div><img src="http://wdr.water.usgs.gov/nwisgmap/images/icons16x16/sw_only.png" alt="Surface-Water Sites"  /></td><td style="vertical-align:top;"><span style="vertical-align:top;">Surface-Water Sites</span><div></td></tr>' +
                                                            '<tr><td><div><img src="http://wdr.water.usgs.gov/nwisgmap/images/icons16x16/gw_only.png" alt="Groundwater Sites"  /></td><td style="vertical-align:top;">  <span style="vertical-align:top;">Groundwater Sites</span><div></td></tr>' +
                                                            '<tr><td><div><img src="http://wdr.water.usgs.gov/nwisgmap/images/icons16x16/sp_only.png" alt="Spring Sites"  /></td><td style="vertical-align:top;">       <span style="vertical-align:top;">Spring Sites<br /></span><div></td></tr>' +
                                                            '<tr><td><div><img src="http://wdr.water.usgs.gov/nwisgmap/images/icons16x16/clim_only.png" alt="Atmospheric Sites"  /></td><td style="vertical-align:top;"><span style="vertical-align:top;">Atmospheric Sites</span><div></td></tr>' +
                                                            '<tr><td><div><img src="http://wdr.water.usgs.gov/nwisgmap/images/icons16x16/ot_only.png" alt="Other Site Types"  /></td><td style="vertical-align:top;">   <span style="vertical-align:top;">Other Site Types</span><div></td></tr>' +
                                                            '</table>';
                                            return div;
                                        };
                                        legend.addTo(map);
                                        //------------------SITES SECTION -----------------------//
                                        var markers = new L.MarkerClusterGroup();
                                        //Grab the hidden field that JSON of sites is stored in
                                        var hfMap = $("#hfMap");
                                        //Convert the sites to a JSON array
                                        var sites = $.parseJSON(hfMap.val());
                                        //Foreach site in the sites array add them to the map
                                        $(sites).each(function (index, site) {
                                            //Add Marker to Cluster Group
                                            //Create the icon information for this site
     
                                            var myIcon = L.icon({
                                                iconUrl: site.IconURL,
                                                iconSize: [20, 20],
                                                shadowURL: site.IconShadowURL,
                                                shadowSize: [20, 20]
                                            });
                                            //Initialize a L.marker object and bind the popUpText to it and its Icon
                                            //Then add the site 'L.marker' to the marker Cluster 'markers'
                                            markers.addLayer(L.marker([site.Lat, site.Lng], { icon: myIcon }).bindPopup(site.PopUpText, { maxWidth: 500 }));
                                            L.marker([site.Lat, site.Lng], { icon: myIcon }).bindPopup(site.PopUpText, { maxWidth: 500 }).addTo(map);
                                        });
                                        map.fitBounds(markers.getBounds());
                                        //map.addLayer(markers);
                                    });
                                </script>
                            </div>
                        </td>
                    </tr>
                </table>
            </telerik:RadPageView>
            <!-- Contacts -->
            <telerik:RadPageView ID="Contacts" runat="server">
                <table>
                    <tr>
                        <!-- Customer Technical Contact -->
                        <td valign="top" style="width: 50%; padding: 10px;">
                            <telerik:RadComboBox runat="server" ID="rcbctContacts" DataSourceID="ldsCustomerContacts" Width="100%" HighlightTemplatedItems="true" DataTextField="AddressTitle" DataValueField="CustomerContactAddressID" EnableVirtualScrolling="true" OnSelectedIndexChanged="rcbctContacts_SelectedIndexChanged" AppendDataBoundItems="true" AutoPostBack="true">
                                <Items>
                                    <telerik:RadComboBoxItem Text="" Value="" />
                                </Items>
                                <ItemTemplate>
                                    <%# ContactName(Eval("Salutation"), Eval("FirstName"), Eval("MiddleName"), Eval("LastName")) + " - " + Eval("Type").ToString()  %>
                                </ItemTemplate>
                            </telerik:RadComboBox>
                            <br />
                            <br />
                            <telerik:RadGrid runat="server" ID="rgctContact" OnNeedDataSource="rgctContact_NeedDataSource" Width="100%" AutoGenerateColumns="false">
                                <MasterTableView NoDetailRecordsText="There are no customer technical contacts assigned to this agreement." NoMasterRecordsText="There are no customer technical contacts assigned to this agreement.">
                                    <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" HorizontalAlign="Center" />
                                    <Columns>
                                        <telerik:GridTemplateColumn HeaderText="Customer Technical Contact">
                                            <ItemTemplate>
                                                <b><%# ContactName(Eval("Salutation"), Eval("FirstName"), Eval("MiddleName"), Eval("LastName")) %></b><br />
                                                <%# Eval("Title") %><br />
                                                Work:<%# PhoneFormat(Eval("PhoneWork")) %><br />
                                                Mobile:<%# PhoneFormat(Eval("PhoneMobile")) %><br />
                                                Fax:<%# PhoneFormat(Eval("PhoneFax")) %><br />
                                                Email:<a href='mailto:<%# Eval("Email") %>'><%# Eval("Email") %></a><br />
                                                <%# Eval("StreetOne") %> <%# Eval("StreetTwo") %><br />
                                                <%# Eval("City") %>, <%# Eval("State") %> <%# Eval("ZipCode") %>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
                        </td>
                        <!-- CUSTOMER Billing Contact-->
                        <td valign="top" style="width: 50%; padding: 10px;">
                            <telerik:RadComboBox runat="server" ID="rcbcbContacts" DataSourceID="ldsCustomerContacts" Width="100%" HighlightTemplatedItems="true" DataTextField="AddressTitle" DataValueField="CustomerContactAddressID" EnableVirtualScrolling="true" OnSelectedIndexChanged="rcbcbContacts_SelectedIndexChanged" AppendDataBoundItems="true" AutoPostBack="true">
                                <Items>
                                    <telerik:RadComboBoxItem Text="" Value="" />
                                </Items>
                                <ItemTemplate>
                                    <%# ContactName(Eval("Salutation"), Eval("FirstName"), Eval("MiddleName"), Eval("LastName")) + " - " + Eval("Type").ToString()  %>
                                </ItemTemplate>
                            </telerik:RadComboBox>
                            <br />
                            <br />
                            <telerik:RadGrid runat="server" ID="rgcbContact" OnNeedDataSource="rgcbContact_NeedDataSource" Width="100%" AutoGenerateColumns="false">
                                <MasterTableView NoDetailRecordsText="There are no customer billing contacts assigned to this agreement." NoMasterRecordsText="There are no customer billing contacts assigned to this agreement.">
                                    <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" HorizontalAlign="Center" />
                                    <Columns>
                                        <telerik:GridTemplateColumn HeaderText="Customer Billing Contact">
                                            <ItemTemplate>
                                                <b><%# ContactName(Eval("Salutation"), Eval("FirstName"), Eval("MiddleName"), Eval("LastName")) %></b><br />
                                                <%# Eval("Title") %><br />
                                                Work:<%# PhoneFormat(Eval("PhoneWork")) %><br />
                                                Mobile:<%# PhoneFormat(Eval("PhoneMobile")) %><br />
                                                Fax:<%# PhoneFormat(Eval("PhoneFax")) %><br />
                                                Email:<a href='mailto:<%# Eval("Email") %>'><%# Eval("Email") %></a><br />
                                                <%# Eval("StreetOne")%> <%# Eval("StreetTwo") %><br />
                                                <%# Eval("City") %>, <%# Eval("State") %> <%# Eval("ZipCode") %>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
                        </td>
                    </tr>
                    <tr>
                        <!-- USGS Technical Contact -->
                        <td valign="top" style="width: 50%; padding: 10px;">
                            <br />
                            <telerik:RadComboBox runat="server" ID="rcbutContacts" OnItemsRequested="rcbutContacts_ItemsRequested" OnSelectedIndexChanged="rcbutContacts_SelectedIndexChanged" AppendDataBoundItems="true" Width="100%" HighlightTemplatedItems="true" AllowCustomText="true" EnableLoadOnDemand="true" ItemsPerRequest="5" AutoPostBack="true" Height="100px">
                            </telerik:RadComboBox>
                            <br />
                            <telerik:RadGrid runat="server" ID="rgutContact" OnNeedDataSource="rgutContact_NeedDataSource" Width="100%" AutoGenerateColumns="false">
                                <MasterTableView NoDetailRecordsText="There are no usgs technical contacts assigned to this agreement." NoMasterRecordsText="There are no USGS technical contacts assigned to this agreement.">
                                    <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" HorizontalAlign="Center" />
                                    <Columns>
                                        <telerik:GridTemplateColumn HeaderText="USGS Technical Contact">
                                            <ItemTemplate>
                                                <b><%# Eval("FullName") %></b>
                                                <%# Eval("Title") %><br />
                                                Work:<%# PhoneFormat(Eval("PhoneWork")) %><br />
                                                Mobile:<%# PhoneFormat(Eval("PhoneMobile")) %><br />
                                                Fax:<%# PhoneFormat(Eval("PhoneFax")) %><br />
                                                Email:<a href='mailto:<%# Eval("Email") %>'><%# Eval("Email") %></a><br />
                                                <%# Eval("StreetOne").ToString() + " " + Eval("StreetTwo").ToString() %><br />
                                                <%# Eval("City") %>, <%# Eval("State") %> <%# Eval("ZipCode") %>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
                            <telerik:RadButton runat="server" ID="rbutContactRemove" Text="Remove Contact" Visible="false" OnClick="rbutContactRemove_Click" AutoPostBack="true" Skin="BlackMetroTouch" />
                        </td>
                        <!-- USGS Billing CONTACT-->
                        <td valign="top" style="width: 50%; padding: 10px;">
                            <br />
                            <telerik:RadComboBox runat="server" ID="rcbubContacts" OnItemsRequested="rcbubContacts_ItemsRequested" OnSelectedIndexChanged="rcbubContacts_SelectedIndexChanged" AppendDataBoundItems="true" Width="100%" HighlightTemplatedItems="true" AllowCustomText="true" EnableLoadOnDemand="true" ItemsPerRequest="5" Height="100px" AutoPostBack="true">
                            </telerik:RadComboBox>
                            <br />
                            <telerik:RadGrid runat="server" ID="rgubContact" OnNeedDataSource="rgubContact_NeedDataSource" Width="100%" AutoGenerateColumns="false">
                                <MasterTableView NoDetailRecordsText="There are no usgs billing contacts assigned to this agreement." NoMasterRecordsText="There are no USGS billing contacts assigned to this agreement.">
                                    <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" HorizontalAlign="Center" />
                                    <Columns>
                                        <telerik:GridTemplateColumn HeaderText="USGS Billing Contact">
                                            <ItemTemplate>
                                                <b><%# Eval("FullName") %></b>
                                                <%# Eval("Title") %><br />
                                                Work:<%# PhoneFormat(Eval("PhoneWork")) %><br />
                                                Mobile:<%# PhoneFormat(Eval("PhoneMobile")) %><br />
                                                Fax:<%# PhoneFormat(Eval("PhoneFax")) %><br />
                                                Email:<a href='mailto:<%# Eval("Email") %>'><%# Eval("Email") %></a><br />
                                                <%# Eval("StreetOne").ToString() + " " + Eval("StreetTwo").ToString() %><br />
                                                <%# Eval("City") %>, <%# Eval("State") %> <%# Eval("ZipCode") %>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                    </Columns>
                                </MasterTableView>
                            </telerik:RadGrid>
                            <telerik:RadButton runat="server" ID="rbubContactRemove" Text="Remove Contact" Visible="false" OnClick="rbubContactRemove_Click" AutoPostBack="true" Skin="BlackMetroTouch" />
                        </td>
                    </tr>
                </table>
                <asp:LinqDataSource ID="ldsCustomerContacts" runat="server" OnSelecting="ldsCustomerContacts_Selecting"></asp:LinqDataSource>
            </telerik:RadPageView>
            <!-- Mods -->
            <telerik:RadPageView ID="rpvMods" runat="server">
                <telerik:RadGrid runat="server" ID="rgMods" OnNeedDataSource="rgMods_NeedDataSource" OnItemDataBound="rgMods_ItemDataBound" OnInsertCommand="rgMods_InsertCommand" OnUpdateCommand="rgMods_UpdateCommand" OnDeleteCommand="rgMods_DeleteCommand" AutoGenerateColumns="false">
                    <MasterTableView DataKeyNames="AgreementModID">
                        <EditFormSettings EditFormType="WebUserControl" UserControlName="Controls/RadGrid/AgreementModControl.ascx"></EditFormSettings>
                        <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" />
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditMod" Visible="false" />
                            <telerik:GridTemplateColumn UniqueName="ModNumber">
                                <ItemStyle HorizontalAlign="Right" />
                                <ItemTemplate>
                                    <b><%# ModNameFormat(Eval("Number")) %></b>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataType="System.DateTime" HeaderText="Start Date" DataField="StartDate" DataFormatString="{0:MM/dd/yyyy}" />
                            <telerik:GridBoundColumn DataType="System.DateTime" HeaderText="End Date" DataField="EndDate" DataFormatString="{0:MM/dd/yyyy}" />
                            <telerik:GridBoundColumn DataType="System.DateTime" HeaderText="USGS Sign" DataField="SignUSGSDate" DataFormatString="{0:MM/dd/yyyy}" />
                            <telerik:GridBoundColumn DataType="System.DateTime" HeaderText="Cust Sign" DataField="SignCustomerDate" DataFormatString="{0:MM/dd/yyyy}" />
                            <telerik:GridBoundColumn DataType="System.Double" HeaderText="USGS CWP" DataField="FundingUSGSCWP" DataFormatString="{0:c0}" />
                            <telerik:GridBoundColumn DataType="System.Double" HeaderText="Customer" DataField="FundingCustomer" DataFormatString="{0:c0}" />
                            <telerik:GridBoundColumn DataType="System.Double" HeaderText="Other" DataField="FundingOther" DataFormatString="{0:c0}" />
                            <telerik:GridButtonColumn ConfirmText="Are you sure you want to remove this mod?" ButtonType="ImageButton"
                                CommandName="Delete" Text="Remove" UniqueName="DeleteMod" Visible="false" />
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
            </telerik:RadPageView>
            <!-- Funded Sites -->
            <telerik:RadPageView ID="rpvFundedSites" runat="server">
                <telerik:RadGrid runat="server" ID="rgFundedSites" OnNeedDataSource="rgFundedSites_NeedDataSource" OnInsertCommand="rgFundedSites_InsertCommand" OnUpdateCommand="rgFundedSites_UpdateCommand" OnDeleteCommand="rgFundedSites_DeleteCommand">
                    <MasterTableView AutoGenerateColumns="False" DataKeyNames="FundingSiteID">
                        <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" />
                        <Columns>
                            <telerik:GridTemplateColumn HeaderText="Mod" HeaderStyle-Width="60px" UniqueName="AgreementModID">
                                <ItemTemplate>
                                    <%# Eval("ModNumber") %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox runat="server" ID="rcbModNumber" Width="60px" DataValueField="AgreementModID" DataTextField="Number" DataSourceID="ldsModNumber" />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Site Number" HeaderStyle-Width="130px" UniqueName="SiteNumber">
                                <ItemTemplate>
                                    <%# Eval("SiteNumber") %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadTextBox runat="server" ID="rtbSiteNumber" Width="120px" Text='<%# Eval("SiteNumber") %>' />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Collection Code" HeaderStyle-Width="150px" UniqueName="CollectionCodeID">
                                <ItemTemplate>
                                    <%# Eval("Code") %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadComboBox ID="cbCollectionId" runat="server" Skin="Silk" DataSourceID="ldsCollectionCodes"
                                        DataValueField="CollectionCodeID" Width="150px" MaxHeight="150px" DataTextField="Code">
                                    </telerik:RadComboBox>
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Units" HeaderStyle-Width="50px" UniqueName="CollectionUnits">
                                <ItemTemplate>
                                    <%# Eval("CollectionUnits") %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadNumericTextBox runat="server" ID="rntbUnits" Type="Number" MaxLength="4" MaxValue="2" MinValue="0" Width="40px" />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Dif. Fact." HeaderStyle-Width="75px" UniqueName="DifficultyFactor">
                                <ItemTemplate>
                                    <%# Eval("DifficultyFactor") %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadNumericTextBox runat="server" ID="rntbUnits" Type="Number" MaxLength="4" MaxValue="2" MinValue="0" Width="40px" />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="USGS CWP" HeaderStyle-Width="125px" UniqueName="FundingUSGSCWP">
                                <ItemTemplate>
                                    <%# String.Format("{0:c0}", Eval("FundingUSGSCWP")) %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadNumericTextBox runat="server" ID="rntbFundingUSGSCWP" Type="Currency" />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Customer" HeaderStyle-Width="125px" UniqueName="FundingCustomer">
                                <ItemTemplate>
                                    <%# String.Format("{0:c0}", Eval("FundingCustomer")) %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadNumericTextBox runat="server" ID="rntbFundingCustomer" Type="Currency" />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Remarks" UniqueName="Remarks">
                                <ItemTemplate>
                                    <%# Eval("Remarks") %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                    <telerik:RadTextBox runat="server" ID="rtbRemarks" TextMode="MultiLine" Height="50px" />
                                </EditItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridButtonColumn ButtonType="ImageButton"
                                CommandName="Delete" Text="Remove" UniqueName="DeleteSiteFunding" Visible="false" HeaderStyle-Width="20px" />
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
                <asp:LinqDataSource ID="ldsModNumber" runat="server" ContextTypeName="NationalFundingDev.SiftaDBDataContext" TableName="vSiteFundingInformations" OnSelecting="ldsModNumber_Selecting">
                </asp:LinqDataSource>
                <asp:LinqDataSource ID="ldsCollectionCodes" runat="server" OnSelecting="ldsCollectionCodes_Selecting"></asp:LinqDataSource>
            </telerik:RadPageView>
            <!-- Studies/Support -->
            <telerik:RadPageView ID="rpvStudiesSupport" runat="server">
                <telerik:RadGrid runat="server" ID="rgStudiesSupport" OnNeedDataSource="rgStudiesSupport_NeedDataSource" OnItemDataBound="rgStudiesSupport_ItemDataBound" OnInsertCommand="rgStudiesSupport_InsertCommand" OnUpdateCommand="rgStudiesSupport_UpdateCommand" OnDeleteCommand="rgStudiesSupport_DeleteCommand" AutoGenerateColumns="false">
                    <MasterTableView DataKeyNames="FundingStudyID">
                        <EditFormSettings EditFormType="WebUserControl" UserControlName="Controls/RadGrid/StudiesSupportFundingControl.ascx"></EditFormSettings>
                        <HeaderStyle BackColor="#696f74" Font-Bold="true" ForeColor="White" Font-Size="Small" />
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="Edit" Visible="false" />
                            <telerik:GridTemplateColumn UniqueName="ModNumber">
                                <ItemStyle HorizontalAlign="Right" />
                                <ItemTemplate>
                                    <b><%# ModNameFormat(Eval("Number")) %></b>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                            <telerik:GridBoundColumn DataType="System.String" HeaderText="BASIS Number" DataField="BasisProjectNumber" />
                            <telerik:GridBoundColumn DataType="System.String" HeaderText="Code" DataField="Code" />
                            <telerik:GridBoundColumn DataType="System.String" HeaderText="Description" DataField="Description" />
                            <telerik:GridBoundColumn DataType="System.Double" HeaderText="USGS CWP" DataField="FundingUSGSCWP" DataFormatString="{0:c0}" />
                            <telerik:GridBoundColumn DataType="System.Double" HeaderText="Customer" DataField="FundingCustomer" DataFormatString="{0:c0}" />
                            <telerik:GridButtonColumn ConfirmText="Are you sure you want to remove this Studies/Support Funding?" ButtonType="ImageButton"
                                CommandName="Delete" Text="Remove" UniqueName="Delete" Visible="false" />
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>
            </telerik:RadPageView>
            <!-- Documents   -->
            <telerik:RadPageView ID="rpvDocuments" runat="server">
                <div class="SectionContent" style="width: 500px;">
                    <h2>JFA Documents Generator</h2>
                    <telerik:RadAjaxPanel runat="server" ID="rapBtn" ClientEvents-OnRequestStart="Start();" ClientEvents-OnResponseEnd="End();" LoadingPanelID="ralpDocument">
                        <table>
                            <tr>
                                <td align="right">Director:
                                </td>
                                <td>
                                    <telerik:RadComboBox runat="server" ID="rcbDirector" DataTextField="Name" DataValueField="CenterDirectorID" AppendDataBoundItems="true" Skin="BlackMetroTouch" Width="250px">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="" Value="" />
                                        </Items>
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">Financial Reviewer:
                                </td>
                                <td>
                                    <telerik:RadComboBox runat="server" ID="rcbFinancialReviewer" DataTextField="Name" DataValueField="CenterFinancialReviewerID" AppendDataBoundItems="true" Skin="BlackMetroTouch" Width="250px">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="" Value="" />
                                        </Items>
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">DUNS:
                                </td>
                                <td>
                                    <telerik:RadTextBox runat="server" ID="rtbDUNS" Skin="BlackMetroTouch" Width="250px" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right">Project Number:
                                </td>
                                <td>
                                    <telerik:RadTextBox runat="server" ID="rtbProjectNumber" Skin="BlackMetroTouch" Width="250px" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right"></td>
                                <td>
                                    <img id="imgLoad" src="Images/loadingBar.gif" width="100%" hidden="hidden" /><br />
                                    <telerik:RadButton runat="server" ID="rbDownload" Text="Download JFA Documents" AutoPostBack="true" OnClick="rbDownloadJFADocuments_Click" Skin="BlackMetroTouch" Width="250px" />
                                </td>
                            </tr>
                        </table>
                    </telerik:RadAjaxPanel>
     
                    <br />
                    <br />
                </div>
                <br />
                <br />
                <div class="SectionContent" style="width: 500px;">
                    <h2>Upload Documents</h2>
                    <table style="width: 100%">
                        <tr>
                            <td>
                                <table>
                                    <tr>
                                        <td valign="bottom">
                                            <telerik:RadAsyncUpload MultipleFileSelection="Automatic" Visible="false" runat="server" ID="rauFile" Skin="BlackMetroTouch" Width="100%" />
                                        </td>
                                        <td valign="bottom" style="padding-bottom: 6px;">
                                            <telerik:RadButton Visible="false" runat="server" ID="rbUploadDocuments" Text="Upload" Skin="BlackMetroTouch" OnClick="rbUploadDocuments_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <telerik:RadGrid ID="rgAgreementDocuments" Width="100%" AutoGenerateColumns="false" runat="server" OnNeedDataSource="rgAgreementDocuments_NeedDataSource" OnDeleteCommand="rgAgreementDocuments_DeleteCommand" Skin="BlackMetroTouch">
                                    <MasterTableView DataKeyNames="Path">
                                        <Columns>
                                            <telerik:GridTemplateColumn HeaderText="Agreement Documents">
                                                <ItemTemplate>
                                                    <a style="color: #4a95a1;" href='<%# Eval("URL") %>' target="_blank"><%# Eval("Name") %></a>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridButtonColumn ConfirmText="Are you sure you would like to delete this document?" ButtonType="ImageButton"
                                                CommandName="Delete" Text="Remove" UniqueName="DeleteDocument" Visible="false" />
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>
                            </td>
                        </tr>
                    </table>
     
                    <br />
                    <br />
                </div>
            </telerik:RadPageView>
        </telerik:RadMultiPage>
    </asp:Content>
  2. Justin
    Justin avatar
    11 posts
    Member since:
    Jul 2012

    Posted 19 Aug 2014 Link to this post

    I resolved the issue. 
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top