RadMenuItem still enabled even when set to "false"

3 posts, 0 answers
  1. Robert Helm
    Robert Helm avatar
    54 posts
    Member since:
    Feb 2009

    Posted 07 Mar 2011 Link to this post

    I have a RadScheduler  with a RadSchedulerContextMenu that shows when the user right clicks an appointment. Inside that RadSchedulerContextMenu, I have several RadMenuItems, some of which are disabled. One of the RadMenuItems is Text="Edit" Value="CommandEdit" Enabled="False", however, it is NOT disabled. The other items are disabled when I set Enabled="false", but not the Edit item.

    <telerik:RadSchedulerContextMenu runat="server" ID="ContextMenuNone" Skin="Vista" >  
    <Items>    
    <telerik:RadMenuItem Text="Edit" Value="CommandEdit" ImageUrl="~/edit.png" Enabled="false" />    
    ...
    </Items>
    </telerik:RadSchedulerContextMenu>

     
    How can I disable the CommandEdit RadMenuItem?

  2. Robert Helm
    Robert Helm avatar
    54 posts
    Member since:
    Feb 2009

    Posted 08 Mar 2011 Link to this post

    OK, this gets stranger for me...
     
    As mentioned above, my CommandEdit RadMenuItem is set to Enabled="false", yet is NOT disabled.
    Now I just realized that my CommandDelete RadMenuItem is set to Enabled="true", yet it IS disabled.

    Any ideas??
  3. Robert Helm
    Robert Helm avatar
    54 posts
    Member since:
    Feb 2009

    Posted 08 Mar 2011 Link to this post

    Sigh, my oversight...My RadScheduler had AllowDelete="false" and AllowEdit defulted to true! So, in my AppointmentDatabound event, I set the e.Appointment properties to what I need them to be.
Back to Top