or
GridClientSelectColumn
<%@ Page Title="" Language="VB" MasterPageFile="~/intranet/IT/CM/MasterPages/CM.master" AutoEventWireup="false" CodeFile="cm.aspx.vb" Inherits="intranet_IT_CM_cm" %><%@ Register src="controls/LogEntryListing.ascx" tagname="LogEntryListing" tagprefix="uc3" %><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <div style="width:100%"> <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" CausesValidation="False" SelectedIndex="1" Skin="WebBlue"> <Tabs> <telerik:RadTab runat="server" Text="Request Log" > </telerik:RadTab> </Tabs> </telerik:RadTabStrip> <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"> <telerik:RadPageView ID="RadPageView1" runat="server"> <uc3:LogEntryListing ID="LogEntryListing1" runat="server" /> </telerik:RadPageView> </telerik:RadMultiPage> </div></asp:Content><%@ Control Language="VB" AutoEventWireup="false" CodeFile="LogEntryListing.ascx.vb" Inherits="intranet_IT_CM_controls_LogEntryListing" %><telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"><script type="text/javascript"> function ShowLogEntryForm(entryId) { window.radopen("LogEntry.aspx?entrytId=" + entryId, "EditLogEntry"); return false; }</script></telerik:RadCodeBlock> <br /><asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <div style="width:980px;"> <div style="width:60%;float:left;padding-top:10px;padding-bottom:10px;"><asp:Label CssClass="LabelStyle" ID="lblRequestorName" Text="Project Log Entry Added By: " runat="server" ></asp:Label></div> <div style="width:40%;float:left;padding-top:10px;padding-bottom:10px;"><asp:Label CssClass="LabelStyle" ID="lblRequestDate" Text="Date Entry added: " runat="server" ></asp:Label><%# DataBinder.Eval(Container.DataItem, "EntryDate")%></div> </div> <div style="width:980px;float:left;clear:both;padding-bottom:10px"> <asp:Label CssClass="LabelStyle" ID="lblLogEntry" Text="" runat="server" ></asp:Label><%# DataBinder.Eval(Container.DataItem, "Entry")%> </div> <div style="width:980px;float:left;clear:both;padding-bottom:30px"> <asp:LinkButton ID="lbEditRequest" runat="server" style="cursor:hand;" ToolTip="Edit This Request" Text="" CausesValidation="false" > <asp:Image ID="imgEdit" runat="server" ImageUrl="https://webapps1.richland2.org/images/editicons/pencil.png" Width="12" Height="12" visible="true"/> </asp:LinkButton> <asp:Image ID="Image3" runat="server" ImageUrl="https://webapps1.richland2.org/images/spacers/spacer.gif" Width="3" Height="1" visible="true"/> <asp:LinkButton ID="lbDeleteRequest" runat="server" style="cursor:hand;" ToolTip="Delete this request" Text="" CausesValidation="false" CommandName="deleterequest" OnClientClick="return confirm('Do you really want to delete this request from the system?\n\n This action cannot be undone.');" > <asp:Image ID="Image2" runat="server" ImageUrl="https://webapps1.richland2.org/images/deleteicons/delete.png" Width="12" Height="12" visible="true"/> </asp:LinkButton><asp:Label CssClass="LabelStyle" ID="lblEntryId" Text='<%# DataBinder.Eval(Container.DataItem, "EntryId")%>' runat="server" Visible="false"></asp:Label> </div> </ItemTemplate> <AlternatingItemTemplate> <div style="width:980px;padding-left:3px;border:1px solid #000000;"> <div style="width:980px"> <div style="width:60%;float:left;padding-top:10px;padding-bottom:10px;"><asp:Label CssClass="LabelStyle" ID="lblRequestorName" Text="Project Log Entry Added By: " runat="server" ></asp:Label></div> <div style="width:40%;float:left;padding-top:10px;padding-bottom:10px;"><asp:Label CssClass="LabelStyle" ID="lblRequestDate" Text="Date Entry added: " runat="server" ></asp:Label><%# DataBinder.Eval(Container.DataItem, "EntryDate")%></div> </div> <div style="width:980px;float:left;clear:both;padding-bottom:10px;"> <asp:Label CssClass="LabelStyle" ID="lblLogEntry" Text="" runat="server" ></asp:Label><%# DataBinder.Eval(Container.DataItem, "Entry")%> </div> <div style="width:980px;float:left;clear:both;padding-bottom:30px"> <asp:LinkButton ID="lbEditRequest" runat="server" style="cursor:hand;" ToolTip="Edit This Request" Text="" CausesValidation="false" > <asp:Image ID="imgEdit" runat="server" ImageUrl="https://webapps1.richland2.org/images/editicons/pencil.png" Width="12" Height="12" visible="true"/> </asp:LinkButton> <asp:Image ID="Image3" runat="server" ImageUrl="https://webapps1.richland2.org/images/spacers/spacer.gif" Width="3" Height="1" visible="true"/> <asp:LinkButton ID="lbDeleteRequest" runat="server" style="cursor:hand;" ToolTip="Delete this request" Text="" CausesValidation="false" CommandName="deleterequest" OnClientClick="return confirm('Do you really want to delete this request from the system?\n\n This action cannot be undone.');" > <asp:Image ID="Image2" runat="server" ImageUrl="https://webapps1.richland2.org/images/deleteicons/delete.png" Width="12" Height="12" visible="true"/> </asp:LinkButton><asp:Label CssClass="LabelStyle" ID="lblEntryId" Text='<%# DataBinder.Eval(Container.DataItem, "EntryId")%>' runat="server" Visible="false"></asp:Label> </div> </div> </AlternatingItemTemplate></asp:Repeater><telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="WebBlue"> <Windows> <telerik:RadWindow ID="EditLogEntry" runat="server" Title="Editing Log Entry" Height="475px" Width="990px" Left="50px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" KeepInScreenBounds="True"> </telerik:RadWindow> </Windows></telerik:RadWindowManager>I load radmenu from sitemap, now i like to disable one manu item - "ADMIN" on form load.
I tried the following code, but menuitem always returns null so it can never be disable.
RadMenuItem menuitem = mainMenu.FindItemByValue("ADMIN");
if (menuitem != null)
{
menuitem.Enabled =
false;
}
What i did wrong?
Thanks
| //custom button |
| RadToolBarButton customButton = new RadToolBarButton("Properties"); |
| //customButton.CssClass = "test_button"; |
| customButton.Value = "EditProperties"; |
| customButton.CommandName = "EditProperties"; |
| DocFileExplorer.ToolBar.Items.Add(customButton); |
| DocFileExplorer.ToolBar.ButtonClick += new RadToolBarEventHandler(toolBar_ButtonClick); |
| protected void toolBar_ButtonClick(object sender, Telerik.Web.UI.RadToolBarEventArgs e) |
| { |
| //your logic here |
| } |
