Hi there,
I have a grid and a button inside the nested view template. What is the way of getting the parent dataitem details in the GridItemCommand event for this button? Have a look at the code below and any help would be higgly appreciated
Regards
Shafi
I have a grid and a button inside the nested view template. What is the way of getting the parent dataitem details in the GridItemCommand event for this button? Have a look at the code below and any help would be higgly appreciated
<
telerik:RadGrid
Skin
=
"Office2007"
runat
=
"server"
ID
=
"rdGd1"
ShowFooter
=
"False"
AllowSorting
=
"True"
AllowPaging
=
"True"
PageSize
=
"10"
GridLines
=
"None"
>
<
MasterTableView
DataKeyNames
=
"assetNodeID"
AutoGenerateColumns
=
"False"
Name
=
"MainGrid"
CommandItemDisplay
=
"Top"
HierarchyLoadMode
=
"ServerOnDemand"
>
<
CommandItemTemplate
>
<
asp:Label
ID
=
"lblHeaderr"
runat
=
"server"
></
asp:Label
>
</
CommandItemTemplate
>
<
Columns
>
....
....
.....
</
Columns
>
<
NestedViewTemplate
>
<
asp:Panel
runat
=
"server"
ID
=
"InnerContainer"
>
<
asp:Button
ID
=
"btnView"
runat
=
"server"
Text
=
"View"
CommandName
=
"View"
/>
</
asp:Panel
>
</
NestedViewTemplate
>
<
ExpandCollapseColumn
Visible
=
"True"
>
</
ExpandCollapseColumn
>
</
MasterTableView
>
</
telerik:RadGrid
>
Protected
Sub
rdGd1_ItemCommand(
ByVal
source
As
Object
,
ByVal
e
As
Telerik.Web.UI.GridCommandEventArgs)
Handles
rdGd1.ItemCommand
If
e.CommandName =
"View"
Then
.... Here I need the current dataItem details of this grid
End
If
End
Sub
Regards
Shafi