Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
193 views
Here is the scenario:

I have a RadWindow that opens a different ASPX page (so not using a Content Template)

On this ASPX pages that is opened in the RadWindow, I have a RadCombobox with a lot of items.

The RadWindow is AutoSized to the contents - of something like 600x400px.

When you open the RadCombobox, which is positioned near the bottom of the RadWindow, the dropdown opens down, and you can only see a couple of options - it appears that the Dropdown is actually going quite a distance down the popup page, which now has scrollbars - just while this dropdown is open.  using the Scrollbars closes the dropdown and then the scrollbars disappear.  Using Chrome if that matters.

Is there a way to force the RadCombobox in this scenario to stay within the Radwindow?  I have tried EnableScreenBoundaryDetection and ExpandDirection="Up" - but can't get anything to work.

What am I doing wrong?
Dan
Top achievements
Rank 1
 answered on 19 Aug 2014
12 answers
475 views
Here is my code;

 

<rada:RadAsyncUpload ID="RadUpload1" runat="server" OnFileUploaded="RadAsyncUpload1_FileUploaded" OnClientFileUploadFailed="onUploadFailed"

 

 

ReadOnlyFileInputs="true" OnClientFileSelected="onFileSelected" OnClientFileUploaded="onFileUploaded" OnClientFileUploading="onFileUploading" TemporaryFolder="c:\temp" />


 

 

<script type="text/javascript">

 

 

 

 

 

var $ = $telerik.$;

 

 

var uploadsInProgress = 0;

 

 

function onFileSelected(sender, args) {

 

alert(

'4');

 

 

if (!uploadsInProgress)

 

$(

"#newupload").attr("disabled", "disabled");

 

uploadsInProgress++;

}

 

function onFileUploaded(sender, args) {

 

alert(

'3');

 

decrementUploadsInProgress();

}

 

function onUploadFailed(sender, args) {

 

alert(

'2');

 

decrementUploadsInProgress();

 

}

 

function decrementUploadsInProgress() {

 

alert(

'1');

 

uploadsInProgress--;

 

if (!uploadsInProgress)

 

$(

"#newupload").removeAttr("disabled");

 

}

 

function onFileUploading() {

 

alert(

'5');

 

}

 

 

</script>

 




The problem I'm having is that it never seems to properly be creating the temporary file.  I see a file called "RadUploadTestFile" created, but with 0KB.  And the progress bar never goes away.  I don't get why it won't create the temporary file for me to upload to the final location later?

See attached image.

David
Top achievements
Rank 1
 answered on 19 Aug 2014
1 answer
168 views
Hi Everyone,

I'm currently looking into Telerik UI for ASP.net by using a friend of mind computer. I have a question and was wondering if someone can help me.  I created a RadGrid and bind it to an SqlDataSource and enable Insert, Update, Delete.  However, I notice that I can't "Update" or "Delete" any of the records in the grid like Microsoft GridView(I didn't try insert or too concern with that yet). I also try using EntityDataSource without any luck.  Do I have to create code-behind to perform these functions such as "Insert,Update,Delete"?   Below is an example of the EntityDataSource.
<asp:EntityDataSource ID="EntityDataSource2" runat="server"
                  ConnectionString="name=TBSDBContext" DefaultContainerName="TBSDBContext"
                  EnableDelete="True" EnableFlattening="False" EnableInsert="True"
                  EnableUpdate="True" EntitySetName="Offices" EntityTypeFilter="Office">
              </asp:EntityDataSource>

Anthony
Top achievements
Rank 1
 answered on 19 Aug 2014
1 answer
87 views
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>
Justin
Top achievements
Rank 1
 answered on 19 Aug 2014
4 answers
183 views

I am creating a new thread since i wanted to update my Day 2 work on this problem
Day 1
I am Currently using Telerik Version v.2011.1.609.35
I have following code on my aspx page displaying a editor control. When the page renders very first time the Radeditor width is really wide which spans way beyond browser width. Please see attached image.
Radeditor comes back to the width i have specified If
1) If i just refresh the page
2) Stop the application and run it again
I cannot have our client do this cause they use this control several times a day.

 

I go to browser's internet options and delete the temp files and cookies
The problem is back again -Radeditor renders wide
I tried applying the width style via CSS, but does not help, the problem persists.....

Day 2
I  tried  to add width under this class in Default skin. 
.Default.reWrapper
{
    border: solid 1px #828282;
 width:798px;
}
It still does not solve this issue. 

I have pasted my aspx code here. I am sorry if the code falls apart once i post this thread....

 

<

 

asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">

 

 

<asp:View ID="View1" runat="server">

 

<

 

table cellspacing="0" cellpadding="2" width="800" bgcolor="#ffffff" border="0">

 

 

<tr>

 

 

<td align="center"><b><i><asp:Label ID="LockLbl" runat="server" /></i></b></td>

 

 

</tr>

 

 

<tr><td><fieldset><legend>OV-5a Narrative</legend>

 

 

<table cellspacing="0" cellpadding="2" width="800" bgcolor="#ffffcc" border="0">

 

 

 

</table>

 

 

</fieldset></td></tr>

 

 

</table>

 

 

</asp:View>

 

 

 

<

 

asp:View ID="View2" runat="server">

 

 

<br />

 

 

<table cellspacing="0" cellpadding="2" width="800" bgcolor="#ffffff" border="0">

 

 

<tr><td><fieldset><legend>OV-5a Narrative - Edit</legend>

 

 

<table cellspacing="0" cellpadding="2" width="800" bgcolor="#ffffcc" border="0">

 

 

<tbody>

 

 

<tr>

 

 

<td>

 

 

<div style="width: 800px; text-align: right"><asp:Literal ID="popguide" runat="server"/></div>

 

 

 

<telerik:RadEditor ID="RadEditor1" runat="server" StripFormattingOptions="MSWordRemoveAll"

 

 

ContentFilters="RemoveScripts, FixUlBoldItalic, FixEnclosingP, IECleanAnchors, MozEmStrong, ConvertFontToSpan, IndentHTMLContent, EncodeScripts, OptimizeSpans">

 

 

<Content>
</
Content>

 

 

</telerik:RadEditor>

 

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td align="right"><asp:Button ID="SubmitBtn" runat="server" Text="Update" />
<asp:Button ID="CancelBtn" runat="server" Text="Cancel" /></td>

 

 

</tr>

 

 

</tbody>

 

 

</table>

 

 

</fieldset></td></tr>

 

 

</table>

 

 

</asp:View>

 

 

</asp:MultiView>

 

 

 

Thanks,
VJ

Luke
Top achievements
Rank 2
 answered on 19 Aug 2014
2 answers
151 views
Hi all,

I just want to ask on how can I call item command "Filter" on Normal mode and item command "PerformInsert" on Edit mode when Enter key is pressed? Also my page uses MasterPage which also adds problem to my task. Any feedback would be greatly appreciated.

Thanks in advance,
RJ

RJ
Top achievements
Rank 1
 answered on 19 Aug 2014
2 answers
87 views
Help!!

OnClientColorChange
sender.get_selectedColorTitle()  returns null

sender.get_selectedColor() works fine. And when I hover on a color chip it displays the color title just fine.

I am using the color picker with custom color list that I have set the in code behind like so:

RadColorPicker rcp = new RadColorPicker();
                rcp.ID = "colorsId";
                rcp.CssClass = "cFieldRight idcolorsId";
                //rcp.ToolTip = "Select GARMENT COLOR CHOICES";
                rcp.EnableViewState = false;
                rcp.Preset = ColorPreset.None;
                rcp.ShowIcon = false;
                rcp.ShowEmptyColor = false;
                rcp.PreviewColor = false;
                //rcp.Columns = 15;
                rcp.OnClientColorChange = "$.pc5.Colors_OnClientColorChange";
 
                foreach (DataRow dataRow in dt.Rows)
                {
                    string colorName = (string)dataRow["Name"];
                    string colorValue = (string)dataRow["ItemColor"];
                    ColorPickerItem item = new ColorPickerItem();
                    item.Title = colorName;
                    item.Value = ColorTranslator.FromHtml(colorValue);
                    rcp.Items.Add(item);
                }
 
                rcp.SelectedColor = ColorTranslator.FromHtml("#FFFFFF");
                ph.Controls.Add(rcp);


Thanks, Marty
moegal
Top achievements
Rank 1
 answered on 19 Aug 2014
2 answers
274 views
Hello everyone,

I'm currently using the RadAsyncUpload control to upload files to a database. When selecting files using the control, the file names appear underneath the "Select" button. A requirement is for up to 15 files to be uploaded at one time. When 15 files are selected the list of files that appears underneath the control becomes very large. I was wondering how I can style this list to implement a scroll bar, or at the very least decrease the line spacing between each file within the list. 

RadAsyncUpload Control ASPX:
<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" Height="100%" MultipleFileSelection="Automatic"
    MaxFileInputsCount="15" Width="100%" Skin="Default" UploadedFilesRendering="BelowFileInput"
    AllowedFileExtensions="doc,docx,pdf,png,xls,xlsx" HideFileInput="true" InputSize="15">
</telerik:RadAsyncUpload>

Any suggestions on how to alter the file list with css or any other means will be greatly appreciated.

Thanks,
Matt
Matthew
Top achievements
Rank 1
 answered on 19 Aug 2014
5 answers
152 views
I just recently upgraded from Q3 2011 to Q1 2014 and some previously working javascript code for the RadDatePicker control is now broken.  Please see attached screenshot for error in the debugger.  Can you explain either what has changed for this method or the new way of doing things?  Looking at your documentation, this method should still exist.  Both the datePicker & textBox variables are instantiated objects.

Please advise.

Thanks,
Rob
Rob
Top achievements
Rank 1
 answered on 19 Aug 2014
3 answers
213 views
I am following the instructions for altering the node size located here http://www.telerik.com/help/aspnet-ajax/orgchart-node-size.html

I am using templates so I am referencing the .rocItemTemplate class to adjust the width of the items using the classes below.  The problem I encounter is the distance or margin between the nodes on this level does not change is very large.  I am having trouble finding the right CSS class to reference in order to bring the nodes closer together.  Can someone point me to the right CSS class and margin setting which should bring them closer together?

.DivisionNodeSize
{
  width: 100px !important;
  height: 90px !important;
}
 
.DivisionNodeSize .rocItemTemplate
{
 width: 80px !important;
height: 75px !important;
}
Mark Callan
Top achievements
Rank 1
 answered on 19 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?