or
function
OnClientCheckFinishedHandler(sender, args) {
args.suppressCompleteMessage(
true
);
//prevent the alert
console.log(
'Spell check is complete'
);
}
function
OnClientCheckFinishedHandler(sender, args) {
args.suppressCompleteMessage =
true
;
//prevent the alert
console.log(
'Spell check is complete'
);
}
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
AllowAutomaticDeletes
=
"True"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
AllowSorting
=
"True"
DataSourceID
=
"SqlDataSource1"
ShowGroupPanel
=
"True"
AutoGenerateEditColumn
=
"True"
ShowStatusBar
=
"True"
AutoGenerateColumns
=
"False"
CellSpacing
=
"-1"
GridLines
=
"Both"
AllowMultiRowEdit
=
"True"
>
<
ExportSettings
>
<
Pdf
PageWidth
=
""
>
</
Pdf
>
</
ExportSettings
>
<
ClientSettings
AllowDragToGroup
=
"True"
Selecting-AllowRowSelect
=
"True"
>
<
Selecting
AllowRowSelect
=
"True"
></
Selecting
>
</
ClientSettings
>
<
MasterTableView
AutoGenerateColumns
=
"False"
DataSourceID
=
"SqlDataSource1"
CommandItemDisplay
=
"Top"
DataKeyNames
=
"Id"
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"Id"
FilterControlAltText
=
"Filter Id column"
HeaderText
=
"Id"
SortExpression
=
"Id"
UniqueName
=
"Id"
DataType
=
"System.Int32"
ReadOnly
=
"True"
Visible
=
"False"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Whs"
FilterControlAltText
=
"Filter Whs column"
HeaderText
=
"Whs"
SortExpression
=
"Whs"
UniqueName
=
"Whs"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ItemNo"
FilterControlAltText
=
"Filter ItemNo column"
HeaderText
=
"ItemNo"
SortExpression
=
"ItemNo"
UniqueName
=
"ItemNo"
>
</
telerik:GridBoundColumn
>
<
telerik:RadPageView
ID
=
"radPage1"
runat
=
"server"
>
<
telerik:RadAjaxPanel
ID
=
"RadAjaxPanel3"
runat
=
"server"
EnableAJAX
=
"True"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
ClientEvents-OnRequestStart
=
"onRequestStart"
>
<
table
width
=
"100%"
cellpadding
=
"0"
cellspacing
=
"0"
>
<
tr
>
<
td
style
=
"width: 50%"
>
<%-- <
telerik:RadAjaxPanel
ID
=
"RadAjaxPanel4"
runat
=
"server"
EnableAJAX
=
"True"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
ClientEvents-OnRequestStart
=
"onRequestStart"
> --%>
<
telerik:RadGrid
ID
=
"radGrid"
runat
=
"server"
AllowSorting
=
"true"
AllowFilteringByColumn
=
"False"
OnNeedDataSource
=
"grdUnResolvedFaxes_NeedDataSource"
Skin
=
"Metro"
CellSpacing
=
"0"
GridLines
=
"None"
Width
=
"99%"
PageSize
=
"12"
OnItemCommand
=
"grdUnResolvedFaxes_ItemCommand"
EnableViewState
=
"true"
>....
.....
.....
</
telerik:RadGrid
>
<%-- </
telerik:RadAjaxPanel
> --%>
</
td
>
<
td
style
=
"width: 50%"
>
<
telerik:RadPanelBar
runat
=
"server"
ID
=
"pnlBar"
ExpandMode
=
"MultipleExpandedItems"
Width
=
"99%"
Visible
=
"false"
>
<
Items
>
.................
</
Items
>
</
telerik:RadPanelBar
>
</
td
>
</
tr
>
</
table
>
</
telerik:RadAjaxPanel
>
</
telerik:RadPageView
>
if (e.CommandName.ToLower() == "select")
{
RadAjaxPanel4.ResponseScripts.Add(String.Format("$find('{0}').ajaxRequest();", RadAjaxPanel3.ClientID));
}
<
telerik:RadGrid
ID
=
"gridSurveys"
runat
=
"server"
AutoGenerateDeleteColumn
=
"True"
AllowAutomaticInserts
=
"True"
AutoGenerateEditColumn
=
"True"
OnNeedDataSource
=
"gridSurveys_NeedDataSource"
OnItemDataBound
=
"gridSurveys_ItemDataBound"
AutoGenerateColumns
=
"False"
CellSpacing
=
"-1"
GridLines
=
"Both"
>
<
MasterTableView
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"VesselDescription"
HeaderText
=
"Vessel"
UniqueName
=
"VesselDescription"
ReadOnly
=
"true"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"VesselID"
DataType
=
"System.Int32"
FilterControlAltText
=
"Filter VesselID column"
HeaderText
=
"VesselID"
SortExpression
=
"VesselID"
UniqueName
=
"VesselID"
Visible
=
"false"
ReadOnly
=
"True"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"CruiseID"
DataType
=
"System.Int32"
FilterControlAltText
=
"Filter CruiseID column"
HeaderText
=
"Cruise"
SortExpression
=
"CruiseID"
UniqueName
=
"CruiseID"
ReadOnly
=
"True"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Year"
DataType
=
"System.Int32"
FilterControlAltText
=
"Filter Year column"
HeaderText
=
"Year"
ReadOnly
=
"True"
SortExpression
=
"Year"
UniqueName
=
"Year"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Amalgamation"
HeaderText
=
"Amalgamation"
ReadOnly
=
"True"
UniqueName
=
"Amalgamation"
Visible
=
"false"
></
telerik:GridBoundColumn
>
<
telerik:GridDropDownColumn
DataField
=
"TargetSurveyDescription"
HeaderText
=
"Target Survey"
ListTextField
=
"TargetSurveyDescription"
ListValueField
=
"TargetSurveyID"
UniqueName
=
"TargetSurveyDescription"
ColumnEditorID
=
"TargetSurveyDescription"
DropDownControlType
=
"DropDownList"
Visible
=
"false"
></
telerik:GridDropDownColumn
>
<
telerik:GridBoundColumn
DataField
=
"TargetSurveyID"
DataType
=
"System.Int32"
HeaderText
=
"TargetSurveyID"
UniqueName
=
"TargetSurveyID"
ReadOnly
=
"true"
Visible
=
"false"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
Protected
Sub
gridSurveys_ItemDataBound(sender
As
Object
, e
As
GridItemEventArgs)
Handles
gridSurveys.ItemDataBound
' Build up the Target Survey dropdown
Dim
editItemTargetSurvey
As
GridEditableItem =
DirectCast
(e.Item, GridEditableItem)
Dim
editManagerTargetSurvey
As
GridEditManager = editItemTargetSurvey.EditManager
Dim
editorTargetSurvey
As
GridDropDownListColumnEditor =
DirectCast
(editManagerTargetSurvey.GetColumnEditor(
"TargetSurveyDescription"
), GridDropDownListColumnEditor)
Dim
dsTargetSurvey
As
New
DSSurveyTableAdapters.spGetTargetSurveyTableAdapter
Dim
selectedTargetSurvey
As
Integer
= DataBinder.Eval(editItemTargetSurvey.DataItem,
"TargetSurveyID"
)
Dim
rComboBoxTargetSurvey
As
DropDownList = editorTargetSurvey.DropDownListControl
' Set the width of the dropdown
rComboBoxTargetSurvey.Width = Unit.Pixel(165)
' Populate the dropdown
rComboBoxTargetSurvey.DataTextField =
"TargetSurveyDescription"
rComboBoxTargetSurvey.DataValueField =
"TargetSurveyID"
rComboBoxTargetSurvey.DataBind()
rComboBoxTargetSurvey.SelectedValue = selectedTargetSurvey
End
Sub