or
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
GridLines
=
"None"
AllowAutomaticUpdates
=
"True"
OnItemCommand
=
"RadGrid_ItemCommand"
OnItemDataBound
=
"RadGrid_ItemDataBound"
AllowPaging
=
"true"
PageSize
=
"10"
OnPageSizeChanged
=
"GridPageSizeChanged"
AutoGenerateColumns
=
"false"
OnSortCommand
=
"RadGrid_SortCommand"
AllowMultiRowSelection
=
"true"
OnItemCreated
=
"RadGrid_ItemCreated"
DataSourceID
=
"RequestMasterDataSource"
EnableViewState
=
"true"
>
<
ExportSettings
HideStructureColumns
=
"true"
/>
<
MasterTableView
TableLayout
=
"Fixed"
RetrieveDataTypeFromFirstItem
=
"true"
CommandItemDisplay
=
"Top"
>
<
CommandItemSettings
ShowExportToExcelButton
=
"false"
ShowAddNewRecordButton
=
"false"
ShowRefreshButton
=
"false"
/>
</
MasterTableView
>
<
ClientSettings
>
<
ClientEvents
OnRowDblClick
=
"SendSelectedRowToParent"
></
ClientEvents
>
<
Selecting
AllowRowSelect
=
"True"
></
Selecting
>
<
Scrolling
AllowScroll
=
"false"
></
Scrolling
>
<
ClientMessages
DragToGroupOrReorder
=
"Drag to group"
/>
<
Resizing
ResizeGridOnColumnResize
=
"True"
AllowRowResize
=
"True"
AllowColumnResize
=
"True"
>
</
Resizing
>
</
ClientSettings
>
<
HeaderContextMenu
CssClass
=
"GridContextMenu GridContextMenu_Default"
>
</
HeaderContextMenu
>
</
telerik:RadGrid
>
<
telerik:RadGrid
ID
=
"RadGrid"
runat
=
"server"
GridLines
=
"None"
AllowAutomaticUpdates
=
"True"
OnItemCommand
=
"RadGrid_ItemCommand"
OnItemDataBound
=
"RadGrid_ItemDataBound"
AllowPaging
=
"true"
PageSize
=
"10"
OnPageSizeChanged
=
"GridPageSizeChanged"
AutoGenerateColumns
=
"false"
OnSortCommand
=
"RadGrid_SortCommand"
AllowMultiRowSelection
=
"true"
OnItemCreated
=
"RadGrid_ItemCreated"
OnNeedDataSource
=
"RadGrid_NeedDataSource"
EnableViewState
=
"true"
>
<
ExportSettings
HideStructureColumns
=
"true"
/>
<
MasterTableView
TableLayout
=
"Fixed"
RetrieveDataTypeFromFirstItem
=
"true"
CommandItemDisplay
=
"Top"
>
<
CommandItemSettings
ShowExportToExcelButton
=
"false"
ShowAddNewRecordButton
=
"false"
ShowRefreshButton
=
"false"
/>
</
MasterTableView
>
<
ClientSettings
>
<
ClientEvents
OnRowDblClick
=
"SendSelectedRowToParent"
></
ClientEvents
>
<
Selecting
AllowRowSelect
=
"True"
></
Selecting
>
<
Scrolling
AllowScroll
=
"false"
></
Scrolling
>
<
ClientMessages
DragToGroupOrReorder
=
"Drag to group"
/>
<
Resizing
ResizeGridOnColumnResize
=
"True"
AllowRowResize
=
"True"
AllowColumnResize
=
"True"
>
</
Resizing
>
</
ClientSettings
>
<
HeaderContextMenu
CssClass
=
"GridContextMenu GridContextMenu_Default"
>
</
HeaderContextMenu
>
</
telerik:RadGrid
>
protected
void
RadGrid_NeedDataSource(
object
sender, GridNeedDataSourceEventArgs e)
{
if
(configuration.DeferredLoad)
{
if
(Page.IsPostBack)
{
RadGrid.DataSource = RequestMasterDataSource;
}
}
else
{
RadGrid.DataSource = RequestMasterDataSource;
}
}