Hi All
Have a Grid with some records, which works fine.
Have included a RadToolBar inside CommandItemTemplate of the Grid, which contains two RadToolBarButton "Edit" and "Close".
While I am selecting a row in the grid, Need to check a field "Termination Status", If it is not equal to "T" then need to disable the RadToolBarButton "Edit" in RadToolBar. Need to do it in Client Side.
Have used the RowSelect in Client Side
Is there any option to solve this problem
Thanking You
-Anto
Have a Grid with some records, which works fine.
Have included a RadToolBar inside CommandItemTemplate of the Grid, which contains two RadToolBarButton "Edit" and "Close".
While I am selecting a row in the grid, Need to check a field "Termination Status", If it is not equal to "T" then need to disable the RadToolBarButton "Edit" in RadToolBar. Need to do it in Client Side.
<CommandItemTemplate> |
<div> |
<table width="103%" border="0" cellpadding="0" cellspacing="0" style="margin-top: -2px; |
margin-left: -4px; margin-bottom: -3px;"> |
<tr> |
<telerik:RadToolBar runat="server" ID="RTBTermination" Skin="Office2007" Width="100%" |
OnClientButtonClicked="RTBTerminationclientButtonClicked" OnButtonClick="RTBTermination_ButtonClick"> |
<Items> |
<telerik:RadToolBarButton Text="Edit" Font-Size="9" ForeColor="#00156E" CommandName="Edit" |
ImagePosition="Left" ImageUrl="images/penedit.png"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="Close" Font-Size="9" ForeColor="#00156E" ImagePosition="Left" |
ImageUrl="images/closeeeeeee.gif"> |
</telerik:RadToolBarButton> |
<telerik:RadToolBarButton Text="" Font-Size="9" Width="800px" Enabled="false" ForeColor="#00156E"> |
</telerik:RadToolBarButton> |
</Items> |
</telerik:RadToolBar> |
</tr> |
</table> |
</div> |
</CommandItemTemplate> |
Have used the RowSelect in Client Side
function rgvReport_RowSelect(sender, eventArgs) { |
var rowindex = eventArgs.get_itemIndexHierarchical(); |
document.getElementById("<%=txtrgvReportRowIndex.ClientID%>").value = eventArgs.get_itemIndexHierarchical(); |
//alert(rowindex); |
var TerGrid = $find("<%=rgvReport.ClientID %>"); |
var gridRow = TerGrid.MasterTableView.get_dataItems()[rowindex]; |
var TerStatus = gridRow.getDataKeyValue("TerminationStatus"); |
//alert(TerStatus); |
//alert(RTBButton); |
} |
Is there any option to solve this problem
Thanking You
-Anto