I use a DetailsView directly in NestedViewTemplate. It is workable.
But I use a RadTabStrip in NestedViewTemplate, and DetailsView in RadTabStrip PageView.
I got a tricky result. that is the DetailsView show one second and then disappear.
Could anyone tell my what's wrong in it? Thanks.
the following is my code:
But I use a RadTabStrip in NestedViewTemplate, and DetailsView in RadTabStrip PageView.
I got a tricky result. that is the DetailsView show one second and then disappear.
Could anyone tell my what's wrong in it? Thanks.
the following is my code:
<
div
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
Culture
=
"zh-TW"
DataSourceID
=
"LinqDataSource_apply"
AllowAutomaticDeletes
=
"True"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
CellSpacing
=
"0"
GridLines
=
"None"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
>
<
MasterTableView
AutoGenerateColumns
=
"False"
DataSourceID
=
"LinqDataSource_apply"
CommandItemDisplay
=
"Top"
DataKeyNames
=
"user_email"
AllowPaging
=
"True"
PageSize
=
"15"
>
<
NestedViewTemplate
>
<
telerik:RadTabStrip
ID
=
"RadTabStrip1"
runat
=
"server"
MultiPageID
=
"RadMultiPage1
"
SelectedIndex
=
"0"
Skin
=
"Windows7"
>
<
Tabs
>
<
telerik:RadTab
runat
=
"server"
Text
=
"USER"
PageViewID
=
"RadPageView1
"
></
telerik:RadTab
>
</
Tabs
>
</
telerik:RadTabStrip
>
<
telerik:RadMultiPage
ID
=
"RadMultiPage1"
runat
=
"server"
>
<
telerik:RadPageView
ID
=
"RadPageView1"
runat
=
"server"
>
<
asp:LinqDataSource
ID
=
"LinqDataSource_register"
runat
=
"server"
ContextTypeName
=
"db_DataContext"
EntityTypeName
=
""
TableName
=
"register"
Where
=
"email == @email"
>
<
WhereParameters
>
<
asp:ControlParameter
ControlID
=
"Label1"
Name
=
"email"
PropertyName
=
"Text"
Type
=
"String"
/>
</
WhereParameters
>
</
asp:LinqDataSource
>
<
asp:Label
ID
=
"Label1"
Font-Bold
=
"true"
Font-Italic
=
"true"
Text='<%# Eval("user_email") %>' Visible="false" runat="server"></
asp:Label
>
<
asp:DetailsView
ID
=
"DetailsView_user"
runat
=
"server"
DataSourceID
=
"LinqDataSource_register"
Width
=
"300px"
Height
=
"300px"
AutoGenerateRows
=
"false"
>
<
Fields
>
<
asp:BoundField
DataField
=
"id"
HeaderText
=
"id"
InsertVisible
=
"False"
ReadOnly
=
"True"
SortExpression
=
"id"
/>
<
asp:BoundField
DataField
=
"name"
HeaderText
=
"name"
SortExpression
=
"name"
/>
<
asp:BoundField
DataField
=
"orgnaization"
HeaderText
=
"orgnaization"
SortExpression
=
"orgnaization"
/>
</
Fields
>
</
asp:DetailsView
>
</
telerik:RadPageView
>
</
telerik:RadMultiPage
>
</
NestedViewTemplate
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"apply_no"
FilterControlAltText
=
"Filter apply_no column"
HeaderText
=
"apply_no"
SortExpression
=
"apply_no"
UniqueName
=
"apply_no"
DataType
=
"System.Int32"
ReadOnly
=
"True"
>
<
ColumnValidationSettings
>
<
ModelErrorMessage
Text
=
""
></
ModelErrorMessage
>
</
ColumnValidationSettings
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"user_email"
FilterControlAltText
=
"Filter user_email column"
HeaderText
=
"user_email"
SortExpression
=
"user_email"
UniqueName
=
"user_email"
>
<
ColumnValidationSettings
>
<
ModelErrorMessage
/>
</
ColumnValidationSettings
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"type"
FilterControlAltText
=
"Filter type column"
HeaderText
=
"type"
SortExpression
=
"type"
UniqueName
=
"type"
>
<
ColumnValidationSettings
>
<
ModelErrorMessage
/>
</
ColumnValidationSettings
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"usage"
FilterControlAltText
=
"Filter usage column"
HeaderText
=
"usage"
SortExpression
=
"usage"
UniqueName
=
"usage"
>
<
ColumnValidationSettings
>
<
ModelErrorMessage
Text
=
""
/>
</
ColumnValidationSettings
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"date_apply"
DataType
=
"System.DateTime"
FilterControlAltText
=
"Filter date_apply column"
HeaderText
=
"date_apply"
SortExpression
=
"date_apply"
UniqueName
=
"date_apply"
>
<
ColumnValidationSettings
>
<
ModelErrorMessage
Text
=
""
/>
</
ColumnValidationSettings
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"review_status"
FilterControlAltText
=
"Filter review_status column"
HeaderText
=
"review_status"
SortExpression
=
"review_status"
UniqueName
=
"review_status"
>
<
ColumnValidationSettings
>
<
ModelErrorMessage
Text
=
""
/>
</
ColumnValidationSettings
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"reject"
DataType
=
"System.Int32"
FilterControlAltText
=
"Filter reject column"
HeaderText
=
"reject"
SortExpression
=
"reject"
UniqueName
=
"reject"
>
<
ColumnValidationSettings
>
<
ModelErrorMessage
Text
=
""
/>
</
ColumnValidationSettings
>
</
telerik:GridBoundColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn1 column"
UniqueName
=
"EditCommandColumn1"
ButtonType
=
"ImageButton"
>
</
EditColumn
>
<
PopUpSettings
Modal
=
"true"
/>
</
EditFormSettings
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
<
AlternatingItemStyle
HorizontalAlign
=
"Center"
/>
<
HeaderStyle
HorizontalAlign
=
"Center"
/>
<
FilterItemStyle
HorizontalAlign
=
"Center"
/>
</
MasterTableView
>
</
telerik:RadGrid
>
</
div
>
<
asp:LinqDataSource
ID
=
"LinqDataSource_apply"
runat
=
"server"
ContextTypeName
=
"db_DataContext"
EntityTypeName
=
""
TableName
=
"apply"
EnableDelete
=
"True"
EnableInsert
=
"True"
EnableUpdate
=
"True"
></
asp:LinqDataSource
>