or
<
telerik:RadGrid
ID
=
"rgDependency"
runat
=
"server"
Height
=
"476px"
GridLines
=
"None"
ShowGroupPanel
=
"false"
ShowFooter
=
"false"
AutoGenerateColumns
=
"false"
EnableEmbeddedSkins
=
"true"
AllowPaging
=
"true"
PageSize
=
"20"
BorderStyle
=
"None"
BorderColor
=
"Black"
BorderWidth
=
"0px"
BackColor
=
"White"
OnItemCommand
=
"rgDependency_ItemCommand"
OnItemDataBound
=
"rgDependency_ItemDataBound"
OnNeedDataSource
=
"rgDependency_NeedDataSource"
AllowSorting
=
"true"
>
<
HeaderStyle
Height
=
"20px"
BackColor
=
"#004000"
Font-Size
=
"8pt"
Font-Bold
=
"True"
ForeColor
=
"White"
HorizontalAlign
=
"Center"
BorderColor
=
"White"
BorderWidth
=
"1px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
BackColor
=
"White"
/>
<
CommandItemStyle
BackColor
=
"#f5f5e9"
ForeColor
=
"#f5f5e9"
Height
=
"10px"
/>
<
AlternatingItemStyle
BackColor
=
"#F5F5E9"
HorizontalAlign
=
"Center"
/>
<
PagerStyle
BackColor
=
"#F5F5E9"
ForeColor
=
"#F5F5E9"
CssClass
=
"rgpager"
/>
<
ExportSettings
ExportOnlyData
=
"true"
IgnorePaging
=
"true"
HideStructureColumns
=
"true"
Excel-Format
=
"ExcelML"
/>
<
MasterTableView
DataKeyNames
=
"DependencyNumber"
CommandItemDisplay
=
"Top"
GridLines
=
"None"
>
<
CommandItemSettings
ShowExportToExcelButton
=
"true"
ShowRefreshButton
=
"true"
ShowAddNewRecordButton
=
"false"
/>
<
Columns
>
//columns
</
Columns
>
<
NoRecordsTemplate
>
No Dependencies found</
NoRecordsTemplate
>
</
MasterTableView
>
<
ClientSettings
>
<
Resizing
AllowColumnResize
=
"true"
/>
<
Scrolling
AllowScroll
=
"true"
ScrollHeight
=
"400px"
UseStaticHeaders
=
"true"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
Protected Sub rgCurrent_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgCurrent.ItemCommand
If e.CommandName = RadGrid.InitInsertCommandName Then
inserting = True
End If
End Sub
Protected Sub rgCurrent_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgCurrent.ItemCreated
If TypeOf e.Item Is GridEditableItem And e.Item.IsInEditMode and inserting Then
'This returns every editable row while in insert mode, but I want only the insert row
End If
End Sub