or
<
telerik:RadScriptManager
ID
=
"RadScriptManager"
runat
=
"server"
></
telerik:RadScriptManager
>
<!-- content start -->
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadGrid1"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadGrid
ID
=
"RadGrid1"
Width
=
"97%"
AllowPaging
=
"True"
PageSize
=
"15"
runat
=
"server"
AllowSorting
=
"True"
OnCreateColumnEditor
=
"RadGrid1_CreateColumnEditor"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
OnDeleteCommand
=
"RadGrid1_DeleteCommand"
OnInsertCommand
=
"RadGrid1_InsertCommand"
OnItemDataBound
=
"RadGrid1_ItemDataBound"
AllowAutomaticDeletes
=
"True"
GridLines
=
"None"
Skin
=
"WebBlue"
AllowAutomaticInserts
=
"True"
>
<
MasterTableView
Width
=
"100%"
DataKeyNames
=
"DestinationId"
AutoGenerateColumns
=
"False"
>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
UniqueName
=
"EditCommandColumn"
>
<
ItemStyle
CssClass
=
"MyImageButton"
/>
</
telerik:GridEditCommandColumn
>
<
telerik:GridBoundColumn
DataField
=
"DestinationId"
HeaderText
=
"DestinationId"
SortExpression
=
"DestinationId"
UniqueName
=
"DestinationId"
ColumnEditorID
=
"GridTextBoxColumnEditor1"
ReadOnly
=
"false"
Visible
=
"true"
>
</
telerik:GridBoundColumn
>
<
telerik:GridDropDownColumn
DataField
=
"OriginCountryCode"
HeaderText
=
"Traveling From Country"
ListTextField
=
"CountryName"
ListValueField
=
"CountryCode"
UniqueName
=
"OriginCountryCode"
ColumnEditorID
=
"GridDropDownColumnEditor1"
>
</
telerik:GridDropDownColumn
>
<
telerik:GridDropDownColumn
DataField
=
"DestinationCountryCode"
HeaderText
=
"Destination Country"
ListTextField
=
"CountryName"
ListValueField
=
"CountryCode"
UniqueName
=
"DestinationCountryCode"
ColumnEditorID
=
"GridDropDownColumnEditor1"
>
</
telerik:GridDropDownColumn
>
<
telerik:GridDropDownColumn
DataField
=
"PurposeId"
HeaderText
=
"Purpose of Trip"
ListTextField
=
"Description"
ListValueField
=
"PurposeId"
UniqueName
=
"PurposeId"
ColumnEditorID
=
"GridDropDownColumnEditor1"
>
</
telerik:GridDropDownColumn
>
<
telerik:GridDateTimeColumn
UniqueName
=
"DateOfArrival"
PickerType
=
"DatePicker"
HeaderText
=
"Date of Arrival"
DataField
=
"DateOfArrival"
>
<
ItemStyle
Width
=
"120px"
/>
</
telerik:GridDateTimeColumn
>
<
telerik:GridDateTimeColumn
UniqueName
=
"DateOfDeparture"
PickerType
=
"DatePicker"
HeaderText
=
"Date of Departure"
DataField
=
"DateOfDeparture"
>
<
ItemStyle
Width
=
"120px"
/>
</
telerik:GridDateTimeColumn
>
<
telerik:GridCheckBoxColumn
DataField
=
"MultiEntry"
HeaderText
=
"Multi Entry Visa ?"
SortExpression
=
"MultiEntry"
UniqueName
=
"MultiEntry"
>
<
ItemStyle
Width
=
"120px"
/>
</
telerik:GridCheckBoxColumn
>
<
telerik:GridButtonColumn
ConfirmText
=
"Delete this product?"
ConfirmDialogType
=
"RadWindow"
ConfirmTitle
=
"Delete"
ButtonType
=
"ImageButton"
CommandName
=
"Delete"
Text
=
"Delete"
UniqueName
=
"DeleteColumn"
>
<
ItemStyle
HorizontalAlign
=
"Center"
CssClass
=
"MyImageButton"
/>
</
telerik:GridButtonColumn
>
</
Columns
>
<
EditFormSettings
ColumnNumber
=
"1"
CaptionDataField
=
"DestinationId"
CaptionFormatString
=
"Destination Info {0}"
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
></
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>
Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
Select Case e.CommandName
Case "Add"
' Add button pressed. Reset any rows in Edit mode
Dim grid As RadGrid = CType(source, RadGrid)
If (grid.EditItems.Count > 0) Then
grid.MasterTableView.ClearEditItems()
End If
' Manual "Add" Button pressed, put grid in Insert mode
If e.CommandName = "Add" Then
grid.MasterTableView.EditMode = GridEditMode.PopUp
e.Item.OwnerTableView.IsItemInserted = True
e.Item.OwnerTableView.Rebind()
End If
Case "PerformInsert"
'here is where I cannot find the popup data.
End Select
void RadFileExplorer1_ExplorerPopulated(object sender, RadFileExplorerPopulatedEventArgs e)
{
e.List.Sort(delegate(FileBrowserItem fileBrowserItem1, FileBrowserItem fileBrowserItem2)
{
return fileBrowserItem1.Name.CompareTo(fileBrowserItem2.Name);
});
}
<!DOCTYPE html >
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
ClientEvents
OnRequestStart
=
"onRequestStart"
/>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"Grid30"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"Grid30_60"
LoadingPanelID
=
"LoadingPanelGrid30"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"Grid60"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"Grid60_90"
LoadingPanelID
=
"LoadingPanelGrid60"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"Grid90"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"Grid90Plus"
LoadingPanelID
=
"LoadingPanelGrid90"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"GridNeg"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"GridNegative"
LoadingPanelID
=
"LoadingPanelGridNegative"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
asp:Panel
runat
=
"server"
ID
=
"LoadingPanelGridNegative"
>
<
telerik:RadToolTipManager
ID
=
"RadToolTipManagerNegativeClientName"
OffsetY
=
"-1"
HideEvent
=
"LeaveToolTip"
Width
=
"350"
Height
=
"100"
runat
=
"server"
OnAjaxUpdate
=
"OnAjaxUpdateClientName"
RelativeTo
=
"Element"
Position
=
"MiddleRight"
>
</
telerik:RadToolTipManager
>
<
telerik:RadToolTipManager
ID
=
"RadToolTipManagerNegativeInvoice"
OffsetY
=
"-1"
HideEvent
=
"LeaveToolTip"
Width
=
"400"
Height
=
"100"
runat
=
"server"
OnAjaxUpdate
=
"OnAjaxUpdateInvoice"
RelativeTo
=
"Element"
Position
=
"MiddleLeft"
>
</
telerik:RadToolTipManager
>
<
telerik:RadGrid
runat
=
"server"
ID
=
"GridNegative"
Visible
=
"True"
AllowPaging
=
"False"
AllowSorting
=
"true"
AutoGenerateColumns
=
"False"
Skin
=
"WebBlue"
CellPadding
=
"2"
GridLines
=
"None"
ShowFooter
=
"False"
Height
=
"250px"
Width
=
"750px"
>
<
ExportSettings
ExportOnlyData
=
"True"
FileName
=
"DebtorsCredits"
IgnorePaging
=
"True"
OpenInNewWindow
=
"True"
>
<
Excel
Format
=
"ExcelML"
FileExtension
=
"xls"
/>
</
ExportSettings
>
<
ClientSettings
EnableRowHoverStyle
=
"True"
>
<
Resizing
AllowColumnResize
=
"true"
AllowResizeToFit
=
"True"
ClipCellContentOnResize
=
"False"
ResizeGridOnColumnResize
=
"false"
/>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
/>
<
Selecting
AllowRowSelect
=
"true"
/>
<
ClientEvents
OnRowCreated
=
"GridCreated"
/>
</
ClientSettings
>
<
MasterTableView
AllowPaging
=
"false"
AllowSorting
=
"true"
DataKeyNames
=
"client_company_id, base_invoice, billing_line_item_id"
HierarchyLoadMode
=
"Client"
Width
=
"100%"
AllowAutomaticDeletes
=
"False"
AllowAutomaticInserts
=
"False"
AllowAutomaticUpdates
=
"False"
CommandItemDisplay
=
"Top"
UseAllDataFields
=
"true"
EnableHeaderContextMenu
=
"True"
>
<
CommandItemSettings
ShowExportToExcelButton
=
"True"
ShowExportToPdfButton
=
"False"
ShowExportToWordButton
=
"False"
ShowExportToCsvButton
=
"False"
ShowAddNewRecordButton
=
"False"
ShowRefreshButton
=
"False"
/>
<
Columns
>
<
telerik:GridBoundColumn
HeaderText
=
"Client Name"
DataField
=
"ClientName"
UniqueName
=
"ClientName"
ItemStyle-Wrap
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridDateTimeColumn
HeaderText
=
"Invoice Date"
SortExpression
=
"due_date"
ItemStyle-Wrap
=
"false"
DataField
=
"due_date"
DataFormatString
=
"{0:dd MMM yyyy}"
>
</
telerik:GridDateTimeColumn
>
<
telerik:GridBoundColumn
HeaderText="Job<br />Number" DataField="order_code_epro"
UniqueName="order_code_epro" ItemStyle-Width="80" HeaderStyle-Width="80">
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
HeaderText
=
"Candidate"
DataField
=
"candidatename"
UniqueName
=
"candidatename"
ItemStyle-Wrap
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
HeaderText="Invoice<br />Number" DataField="base_invoice"
UniqueName="base_invoice" HeaderTooltip="** indicates adjusted or part paid"
ItemStyle-Width="90" HeaderStyle-Width="90">
</
telerik:GridBoundColumn
>
<
telerik:GridNumericColumn
DataField
=
"consultant_unpaid"
DataFormatString
=
"{0:n}"
HeaderText
=
"Outstanding Revenue (Ex GST)"
HeaderStyle-HorizontalAlign
=
"Right"
ItemStyle-HorizontalAlign
=
"Right"
UniqueName
=
"consultant_unpaid"
ItemStyle-Width
=
"100"
HeaderStyle-Width
=
"100"
ItemStyle-Wrap
=
"false"
ItemStyle-ForeColor
=
"Red"
>
</
telerik:GridNumericColumn
>
<
telerik:GridNumericColumn
DataField
=
"unpaid"
DataFormatString
=
"{0:n}"
HeaderText
=
"Invoice Balance (Inc GST)"
HeaderStyle-HorizontalAlign
=
"Right"
ItemStyle-HorizontalAlign
=
"Right"
UniqueName
=
"unpaid"
ItemStyle-Width
=
"100"
HeaderStyle-Width
=
"100"
ItemStyle-Wrap
=
"false"
ItemStyle-ForeColor
=
"Red"
>
</
telerik:GridNumericColumn
>
<
telerik:GridBoundColumn
HeaderText
=
"Credit Officer"
DataField
=
"collectorname"
UniqueName
=
"collectorname"
ItemStyle-Wrap
=
"false"
HeaderStyle-Wrap
=
"false"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
asp:Panel
>
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="CompanyTooltip.ascx.vb"
Inherits="ConsultantDebtors.CompanyTooltip" %>
<
table
>
<
tr
>
<
td
>
<
b
>Latest Collection Note for
<
asp:Label
runat
=
"server"
ID
=
"clientcompanyid"
></
asp:Label
>
: </
b
>
<
br
/>
<
asp:FormView
runat
=
"server"
ID
=
"CompanyNoteFormView"
DataKeyNames
=
"client_company_id"
EmptyDataText
=
"No collection notes found for this client."
>
<
ItemTemplate
>
<
b
>Date: </
b
>
<
asp:Label
runat
=
"server"
ID
=
"CompanyNoteDate"
><%# IIf(Eval("timestamp").Equals(DateTime.MinValue), "", Eval("timestamp", "{0:dd MMM yyyy}"))%></
asp:Label
>
<
br
/>
<
b
>Credit Officer: </
b
>
<
asp:Label
runat
=
"server"
ID
=
"CompanyCollectorNameLabel"
><%# Eval("collector_name")%></
asp:Label
>
<
br
/>
<
b
>Contact: </
b
>
<
asp:Label
runat
=
"server"
ID
=
"CompanyContactNameLabel"
><%# Eval("contact_name")%></
asp:Label
>
<
br
/>
<
asp:Label
runat
=
"server"
ID
=
"CompanyNoteComment"
><%# Eval("Comment")%></
asp:Label
>
</
ItemTemplate
>
</
asp:FormView
>
</
td
>
</
tr
>
</
table
>
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="InvoiceToolTip.ascx.vb"
Inherits="ConsultantDebtors.InvoiceToolTip" %>
<
table
>
<
tr
>
<
td
>
<
b
>Latest Note for Invoice
<
asp:Label
runat
=
"server"
ID
=
"InvoiceNumberLabel"
></
asp:Label
>
</
b
>
<
br
/>
<
b
>Date: </
b
>
<
asp:Label
runat
=
"server"
ID
=
"InvoiceNoteDate"
></
asp:Label
>
<
br
/>
<
b
>Credit Officer: </
b
>
<
asp:Label
runat
=
"server"
ID
=
"InvoiceCollectorName"
></
asp:Label
>
<
br
/>
<
b
>Category: </
b
>
<
asp:Label
runat
=
"server"
ID
=
"InvoiceCategory"
></
asp:Label
>
<
br
/>
<
b
>Description: </
b
>
<
asp:Label
runat
=
"server"
ID
=
"InvoiceDescription"
></
asp:Label
>
<
br
/>
<
asp:Label
runat
=
"server"
ID
=
"InvoiceNoteComment"
></
asp:Label
>
<
br
/>
<
b
>Invoice Total: </
b
>
<
asp:Label
runat
=
"server"
ID
=
"totalinvoice"
></
asp:Label
>
<
b
>Outstanding: </
b
>
<
asp:Label
runat
=
"server"
ID
=
"totaloutstanding"
></
asp:Label
>
<
br
/>
<
b
>Invoice History</
b
>
<
div
class
=
"RadGrid RadGrid_WebBlue"
>
<
asp:Table
runat
=
"server"
ID
=
"InvoiceTable"
CssClass
=
"rgMasterTable rgClipCells"
CellPadding
=
"0"
>
</
asp:Table
>
</
div
>
</
td
>
</
tr
>
</
table
>