How to show new pane contains a rad grid above telerik on right click in Scheduler Appointments

2 posts, 0 answers
  1. Ahmed
    Ahmed avatar
    55 posts
    Member since:
    Oct 2012

    Posted 03 Sep 2012 Link to this post

    I want to show A pane contains a RadGrid  above scheduler when i right click in Scheduler Appointments ...i think the default behavior for that is to show context menu i want to show A pane contains RadGrid Instead of Context menu.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Sep 2012 Link to this post

    Hi Ahmed,

    Following is the sample code that I tried to achieve your scenario.

    CSS:
    <style type="text/css">
      .griddisplaynone
        {
          display: none;
        }
      .griddisplayblock
        {
          display:block;
        }
    </style>

    ASPX:
    <telerik:RadSplitter ID="RadSplitter1" runat="server" CssClass="griddisplaynone">
       <telerik:RadPane ID="RadPane1" runat="server">
           <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" DataSourceID="SqlDataSource1">
           </telerik:RadGrid>
       </telerik:RadPane>
    </telerik:RadSplitter>
    <telerik:RadScheduler ID="RadScheduler1" runat="server" AppointmentContextMenuSettings-EnableDefault="false" OnClientAppointmentContextMenu="OnClientAppointmentContextMenu" ............... >
       ...............
    </telerik:RadScheduler>

    JS:
    <script type="text/javascript">
        function OnClientAppointmentContextMenu(sender, args) {
            var RadSplitter1 = $find("<%=RadSplitter1.ClientID %>");
            RadSplitter1.addCssClass("griddisplayblock");
        }
    </script>

    Hope this helps.

    Regards,
    Princy.
Back to Top