or
<asp:ImageButton runat="server" ID="imgRemoveCostCenter" ImageUrl="~/Images/Remove.png" OnItemCommand="rad_CostCenters_ItemCommand" CommandName="HideCostCenter" /><telerik:RadGrid ID="rad_CostCenters" OnItemCommand="rad_CostCenters_ItemCommand" AllowMultiRowEdit="true" AutoGenerateColumns="false" EnableTheming="true" Skin="Default" AllowSorting="false" runat="server" ShowHeader="true" OnItemDataBound="Rad_ManagersList_ItemDataBound"><telerik:GridBoundColumn UniqueName="ActionID" DataField="ActionID" Visible="false" />protected void rad_CostCenters_ItemCommand(object sender, GridCommandEventArgs e){ GridDataItem item = (GridDataItem)e.Item; int _ActionID = Convert.ToInt16(item["ActionID"].Text); if (e.CommandName == "HideCostCenter") { _ActionID = -1; } rad_CostCenters.Rebind();}protected void Rad_ManagersList_ItemDataBound(object sender, GridItemEventArgs e){ if (e.Item is GridDataItem) { GridDataItem item = (GridDataItem)e.Item; DataRowView drv = (DataRowView)e.Item.DataItem; int _ActionID = Convert.ToInt16(item["ActionID"].Text); if (_ActionID == -1) { item.Display = false; } }}
<%
@ Register TagPrefix="rad" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<rad:RadSplitter id="rs_Content" runat="server" width="100%" Height="1000px" Orientation="Vertical" Skin="Default">
<rad:RadPane id="rp_Menu" runat="server" scrolling="none" Width="205px">
<div id="masterpage_div_moduledropdown">
<rad:RadComboBox ID="ddModules" runat="server" Width="200px" Skin="Vista" MarkFirstMatch="false" HighlightTemplatedItems="True" ShowToggleImage="True" AllowCustomText="false" EnableLoadOnDemand="false" AutoPostBack="true" onselectedindexchanged="ddModules_SelectedIndexChanged">
<script type="text/javascript"> (function ($) { $(function () { $('.rsAdvChkWrap').hide(); $("[id$='_ResActivity_ResourceValue_Input']").bind('change', function () { if ($("[id$='_ResActivity_ResourceValue_Input']").val() !== 'ILT - Instructor Led Training') { //alert('not equal'); $("[id$='_ResCourse_ResourceValue_Input']").attr('disabled', 'disabled'); $("[id$='_ResLocation_ResourceValue_Input']").attr('disabled', 'disabled'); } else { //alert('equal'); $("[id$='_ResCourse_ResourceValue_Input']").removeAttr('disabled'); $("[id$='_ResLocation_ResourceValue_Input']").removeAttr('disabled'); } }); }); })($telerik.$);</script>
