or
Private Sub RDHauls_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RDHauls.UpdateCommand
Try
' List of parameter values that need to be passed into the UPDATE SQL query
TripCode = RTrim(
CStr(ddlTripCode.SelectedItem.Value))
Dim VesselCode As String = CType(e.Item.FindControl("VessReg"), TextBox).Text
Dim HaulNumber As Integer = CType(e.Item.FindControl("HaulNumber"), TextBox).Text
Dim RigNumber As Integer = CType(e.Item.FindControl("RigNumber"), TextBox).Text
|
<
telerik:RadNumericTextBox
ID
=
"RadNumericTextBox1"
DataType
=
"System.Int64"
runat
=
"server"
Culture
=
"en-US"
EnableSingleInputRendering
=
"True"
LabelWidth
=
"64px"
MaxValue
=
"9223372036854775807"
MinValue
=
"0"
>
<
NumberFormat
ZeroPattern
=
"n"
AllowRounding
=
"False"
DecimalDigits
=
"0"
GroupSeparator
=
""
></
NumberFormat
>
</
telerik:RadNumericTextBox
>
<
telerik:RadButton
ID
=
"_btnUpdateResults"
runat
=
"server"
Text
=
"Update Results"
></
telerik:RadButton
>
<
telerik:RadWindowManager
ID
=
"RadWindowManager1"
runat
=
"server"
EnableShadow
=
"true"
Modal
=
"true"
Behaviors
=
"Close"
width
=
"500px"
Height
=
"325px"
ReloadOnShow
=
"True"
Animation
=
"None"
VisibleStatusbar
=
"false"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"RadWinResults"
runat
=
"server"
ReloadOnShow
=
"true"
ShowContentDuringLoad
=
"false"
Visible
=
"false"
Overlay
=
"true"
VisibleOnPageLoad
=
"true"
style
=
"display: inline; overflow:hidden;"
>
<
ContentTemplate
>
<
telerik:RadGrid
ID
=
"_SearchResults"
runat
=
"server"
AllowPaging
=
"True"
CellSpacing
=
"0"
GridLines
=
"None"
ShowGroupPanel
=
"True"
AllowSorting
=
"True"
PageSize
=
"25"
Width
=
"100%"
Height
=
"700px"
AllowFilteringByColumn
=
"True"
>
<
GroupingSettings
CaseSensitive
=
"False"
/>
<
ExportSettings
IgnorePaging
=
"True"
OpenInNewWindow
=
"True"
ExportOnlyData
=
"True"
FileName
=
"CUCustomSearch"
>
<
Excel
AutoFitImages
=
"True"
Format
=
"ExcelML"
/>
<
Pdf
PageHeight
=
"210mm"
PageWidth
=
"297mm"
DefaultFontFamily
=
"Arial Unicode MS"
PageTopMargin
=
"45mm"
BorderStyle
=
"Medium"
BorderColor
=
"#666666"
>
</
Pdf
>
</
ExportSettings
>
<
ClientSettings
AllowDragToGroup
=
"True"
AllowColumnsReorder
=
"True"
ReorderColumnsOnClient
=
"True"
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
/>
</
ClientSettings
>
<
MasterTableView
CommandItemDisplay
=
"Top"
InsertItemDisplay
=
"Bottom"
TableLayout
=
"Fixed"
>
<
CommandItemSettings
ShowAddNewRecordButton
=
"False"
ShowExportToCsvButton
=
"False"
ShowExportToExcelButton
=
"true"
ShowRefreshButton
=
"False"
ShowExportToPdfButton
=
"True"
/>
<
RowIndicatorColumn
FilterControlAltText
=
"Filter RowIndicator column"
Visible
=
"True"
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
FilterControlAltText
=
"Filter ExpandColumn column"
Visible
=
"True"
>
</
ExpandCollapseColumn
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
</
telerik:RadGrid
>
</
ContentTemplate
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>