I have a main grid that load with a detailGrid.
The detail grid has a 2 link buttons and some information from the transfer or repair process. Depending on the Id of the person whom is logged in I want to be able to hide one or the other link button. How can I accomplish this. So basically if joe is logged in an he iniated the transfer process the link button for accept should not show in the detailgrid only the cancel linkbutton. I am assuming I would take care of this in the databound event but I do not know how to get into the detail grid rows to lock these link buttons out.
The detail grid has a 2 link buttons and some information from the transfer or repair process. Depending on the Id of the person whom is logged in I want to be able to hide one or the other link button. How can I accomplish this. So basically if joe is logged in an he iniated the transfer process the link button for accept should not show in the detailgrid only the cancel linkbutton. I am assuming I would take care of this in the databound event but I do not know how to get into the detail grid rows to lock these link buttons out.
<
telerik:RadGrid
ID
=
"myIssueGrid"
runat
=
"server"
Width
=
"95%"
BorderWidth
=
"1px"
CellPadding
=
"6"
GridLines
=
"None"
BorderColor
=
"#404040"
Skin
=
"Web20"
>
<
MasterTableView
AutoGenerateColumns
=
"false"
DataKeyNames
=
"intIssuedID"
HierarchyDefaultExpanded
=
"false"
HierarchyLoadMode
=
"ServerBind"
BorderColor
=
"#404040"
Font-Size
=
"12"
Font-Names
=
"Veranda,arial,sans-serif"
HeaderStyle-HorizontalAlign
=
"Center"
GridLines
=
"Both"
BorderWidth
=
"1px"
ExpandCollapseColumn-ButtonType
=
"ImageButton"
ExpandCollapseColumn-CollapseImageUrl
=
"~/Images/30.png"
ExpandCollapseColumn-ExpandImageUrl
=
"~/Images/29.png"
><
ItemStyle
HorizontalAlign
=
"Center"
/>
<
AlternatingItemStyle
BackColor
=
"#B0C4DE"
HorizontalAlign
=
"Center"
/>
<
HeaderStyle
ForeColor
=
"White"
Font-Bold
=
"true"
BorderColor
=
"#404040"
BorderWidth
=
"1px"
/>
<
DetailTables
>
<
telerik:GridTableView
Name
=
"myReIssueGrid"
runat
=
"server"
DataKeyNames
=
"intReIssueId"
TableLayout
=
"Fixed"
BorderWidth
=
"1px"
CellPadding
=
"6"
Font-Size
=
"10"
AutoGenerateColumns
=
"False"
HeaderStyle-HorizontalAlign
=
"Center"
BorderColor
=
"#404040"
Font-Names
=
"Veranda,arial,sans-serif"
GridLines
=
"Both"
ExpandCollapseColumn-ButtonType
=
"ImageButton"
ExpandCollapseColumn-CollapseImageUrl
=
"~/Images/30.png"
ExpandCollapseColumn-ExpandImageUrl
=
"~/Images/29.png"
>
<
ParentTableRelation
>
<
telerik:GridRelationFields
DetailKeyField
=
"intIssuedID"
MasterKeyField
=
"intIssuedID"
/>
</
ParentTableRelation
>
<
HeaderStyle
Font-Bold
=
"true"
HorizontalAlign
=
"Center"
CssClass
=
"MostInnerHeaderStyle"
/>
<
ItemStyle
CssClass
=
"MostInnerItemStyle"
HorizontalAlign
=
"Center"
/>
<
AlternatingItemStyle
CssClass
=
"MostInnerAlernatingItemStyle"
HorizontalAlign
=
"Center"
/>
<
Columns
>
<
telerik:GridTemplateColumn
HeaderText
=
"Accept"
ItemStyle-HorizontalAlign
=
"Center"
>
<
ItemTemplate
>
<
asp:LinkButton
ID
=
"lnkAccept"
runat
=
"server"
CommandArgument='<%# bind("intReIssueId") %>' CommandName="Accept">Accept</
asp:LinkButton
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Cancel"
ItemStyle-HorizontalAlign
=
"Center"
>
<
ItemTemplate
>
<
asp:LinkButton
ID
=
"lnkCancel"
runat
=
"server"
CommandArgument='<%# bind("intReIssueId") %>' CommandName="Cancel">Cancel</
asp:LinkButton
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"IssueBy"
HeaderText
=
"ISSUED FROM"
ItemStyle-Font-Size
=
"Smaller"
/>
<
telerik:GridBoundColumn
DataField
=
"IssueTo"
HeaderText
=
"ISSUED TO"
ItemStyle-Font-Size
=
"Smaller"
/>
<
telerik:GridBoundColumn
DataField
=
"dtIssue"
HeaderText
=
"DT_ISSUED"
/>
<
telerik:GridBoundColumn
DataField
=
"strTransaction"
HeaderText
=
"STATUS"
/>
<
telerik:GridBoundColumn
DataField
=
"dtSign"
HeaderText
=
"DT_SIGNED"
/>
</
Columns
>
</
telerik:GridTableView
>
</
DetailTables
>
<
Columns
>
<
telerik:GridTemplateColumn
HeaderText
=
"Transfer"
ItemStyle-HorizontalAlign
=
"Center"
>
<
ItemTemplate
>
<
asp:LinkButton
ID
=
"lnkTransfer"
runat
=
"server"
CommandArgument='<%# bind("intIssuedID") %>' CommandName="Transfer">
<
asp:Image
ID
=
"imgReturn"
runat
=
"server"
ImageUrl
=
"~/Images/Transfer.png"
BorderStyle
=
"None"
/></
asp:LinkButton
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
HeaderText
=
"SN"
DataField
=
"strSN"
/>
<
telerik:GridBoundColumn
HeaderText
=
"STATUS"
DataField
=
"strTransaction"
/>
<
telerik:GridBoundColumn
HeaderText
=
"ITEM"
DataField
=
"Item"
/>
<
telerik:GridBoundColumn
HeaderText
=
"DT_ISSUED"
DataField
=
"DT_Issued"
/>
<
telerik:GridBoundColumn
HeaderText
=
"DT_SIGNED"
DataField
=
"Dt_Signed"
/>
<
telerik:GridBoundColumn
HeaderText
=
"QTY"
DataField
=
"ftQTY"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>