or
<telerik:RadTreeView ID="RadTreeView1" runat="server" OnClientContextMenuShowing="ContextMenuShowing"> <ContextMenus> <telerik:RadTreeViewContextMenu ID="RadTreeViewContextMenu1" CssClass="context-menu"> <Items> <telerik:RadMenuItem Text="Item1" Value="1"> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text="Item One" /> <%-- Some other controls here --%> </ItemTemplate> </telerik:RadMenuItem> </Items> </telerik:RadTreeViewContextMenu> </ContextMenus></telerik:RadTreeView>.context-menu .rmText{ font-size: 0.9em;}.context-menu .rmDisabled{ color: #aaa !important; background-color: transparent !important;}.context-menu .rmItem:hover, .context-menu .rmFirst:hover, .context-menu .rmLast:hover{ cursor: default !important; background-color: #FF9900 !important;}.context-menu .rmSeparator:hover{ background-color: transparent !important;}function ContextMenuShowing(sender, args) { var menuItems = args.get_menu().get_items(); var isNodeEnabled = treeNode.get_attributes().getAttribute("isEnabled"); for (var i = 0; i < menuItems.get_count(); i++) { var menuItem = menuItems.getItem(i); menuItem.set_enabled(isNodeEnabled == "True"); if (!menuItem.get_enabled()) { $(menuItem.get_element()).addClass("rmDisabled"); } }}<asp:CheckBox runat="server" ID="chkShippingInfo" Text=" Use my billing address (below)" Checked="true" OnClick="ShowHideShipping()" /><table id="tblShippingInfo" class="AddressInfoTable" runat="server" style="display: none;"> <tr class="xmp-form-row"> <td align="right" class="xmp-form-label-cell"> <label class="xmp-form-label" id="lblShipTo_Name"> <span class="red"> * </span>Name: </label> </td> <td align="left"> <telerik:RadTextBox ID="txtShipTo_Name" runat="server" /> </td> <td align="left"> <asp:RequiredFieldValidator ID="valRequired_ShipTo_Name" runat="server" Text=" * Required" Display="Dynamic" Enabled="false" ErrorMessage="The Ship To Name field is required." Font-Bold="True" ForeColor="Red" ControlToValidate="txtShipTo_Name" /> </td> </tr> <tr class="xmp-form-row"> <td align="right" class="xmp-form-label-cell"> <label class="xmp-form-label" id="lblShipTo_Address"> <span class="red"> * </span>Address: </label> </td> <td align="left"> <telerik:RadTextBox ID="txtShipTo_Address" runat="server" /> </td> <td align="left"> <asp:RequiredFieldValidator ID="valRequired_ShipTo_Address" runat="server" Text =" * Required" Display="Dynamic" Enabled="false" ErrorMessage="The Ship To Address field is required." Font-Bold="True" ForeColor="Red" ControlToValidate="txtShipTo_Address" /> </td> </tr> <tr class="xmp-form-row"> <td align="right" class="xmp-form-label-cell"> <label class="xmp-form-label" id="lblShipTo_City"> <span class="red"> * </span>City: </label> </td> <td align="left"> <telerik:RadTextBox ID="txtShipTo_City" runat="server" /> </td> <td align="left"> <asp:RequiredFieldValidator ID="valRequired_ShipTo_City" runat="server" Display="Dynamic" Text =" * Required" ErrorMessage="The Ship To City is required." Font-Bold="True" ForeColor="Red" ControlToValidate="txtShipTo_City" Enabled="false" /> </td> </tr> <tr class="xmp-form-row" style="display: none;"> <td align="right" class="xmp-form-label-cell"> <label class="xmp-form-label" id="lblShipTo_Country"> <span class="red"> * </span>Country: </label> </td> <td align="left"> <asp:DropDownList ID="cmbShipTo_Country" runat="server" AutoPostBack="True" Width="160px" onselectedindexchanged="cmbShipTo_Country_SelectedIndexChanged"> <asp:ListItem Text="US" Value="US" /> <asp:ListItem Text="Other" Value="Other" /> </asp:DropDownList> </td> <td align="left"> </td> </tr> <tr class="xmp-form-row"> <td align="right" class="xmp-form-label-cell"> <label class="xmp-form-label" id="lblShipTo_State"> <span class="red"> * </span>State/Prov.: </label> </td> <td align="left"> <asp:DropDownList ID="cmbShipTo_State" runat="server" AutoPostBack="false" Width="160px" /> </td> <td align="left"> <asp:RequiredFieldValidator ID="valRequired_ShipTo_State" runat="server" Text =" * Required" Display="Dynamic" Enabled="false" ErrorMessage="The Ship To State field is required." Font-Bold="True" ForeColor="Red" ControlToValidate="cmbShipTo_State" /> </td> </tr> <tr class="xmp-form-row"> <td align="right" class="xmp-form-label-cell"> <label class="xmp-form-label" id="lblShipTo_ZipCode"> <span class="red"> * </span>Zip Code: </label> </td> <td align="left"> <telerik:RadMaskedTextBox ID="txtShipTo_ZipCode" runat="server" Mask="#####" PromptChar="_" HideOnBlur="True" RequireCompleteText="True" ResetCaretOnFocus="True" /> </td> <td align="left"> <asp:RequiredFieldValidator ID="valRequired_ShipTo_Zip" runat="server" Text =" * Required" Display="Dynamic" Enabled="false" ErrorMessage="The Ship To Zip Code field is required." Font-Bold="True" ForeColor="Red" ControlToValidate="txtShipTo_ZipCode" /> </td> </tr></table>var sShippingCheckBoxID = "<%=chkShippingInfo.ClientID %>";var valShipNameID = "<%=valRequired_ShipTo_Name.ClientID %>";var valShipAddressID = "<%=valRequired_ShipTo_Address.ClientID %>";var valShipCityID = "<%=valRequired_ShipTo_City.ClientID %>";var valShipStateID = "<%=valRequired_ShipTo_State.ClientID %>";var valShipZipID = "<%=valRequired_ShipTo_Zip.ClientID %>";var sShippingTableID = "<%=tblShippingInfo.ClientID %>"; /// <summary>/// Hides/shows the shipping information area./// </summary>function ShowHideShipping() { var tblShip = document.getElementById(sShippingTableID); var chkShip = document.getElementById(sShippingCheckBoxID); var valShipName = document.getElementById(valShipNameID); var valShipAddress = document.getElementById(valShipAddressID); var valShipCity = document.getElementById(valShipCityID); var valShipState = document.getElementById(valShipStateID); var valShipZip = document.getElementById(valShipZipID); var bShowShipping = false; if (chkShip != null) bShowShipping = !chkShip.checked; if (tblShip != null)
{
if (bShowShipping) tblShip.style.display = "block";
else
tblShip.style.display = "none";
} if (valShipName != null) valShipName.Enabled = bShowShipping; if (valShipAddress != null) valShipAddress.Enabled = bShowShipping; if (valShipCity != null) valShipCity.Enabled = bShowShipping; if (valShipState != null) valShipState.Enabled = bShowShipping; if (valShipZip != null) valShipZip.Enabled = bShowShipping;}protected void chkShippingInfo_CheckedChanged(object sender, EventArgs e){ tblShippingInfo.Style["display"] = (chkShippingInfo.Checked ? "none" : "block"); valRequired_ShipTo_Name.Enabled = !chkShippingInfo.Checked; valRequired_ShipTo_Address.Enabled = !chkShippingInfo.Checked; valRequired_ShipTo_City.Enabled = !chkShippingInfo.Checked; valRequired_ShipTo_State.Enabled = !chkShippingInfo.Checked; valRequired_ShipTo_Zip.Enabled = !chkShippingInfo.Checked;}function radButtonPrint_ClientClicked() { var editor = $find('radEditor'); editor.fire("Print");}

Protected Sub rgProcedures_PreRender(sender As Object, e As EventArgs) Handles rgProcedures.PreRender For Each HeaderItem As Telerik.Web.UI.GridHeaderItem In rgProcedures.MasterTableView.GetItems(Telerik.Web.UI.GridItemType.Header) Dim chkSelectAll As CheckBox = DirectCast(HeaderItem("colClientSelect").Controls(0), CheckBox) chkSelectAll.Visible = False NextEnd Sub
