This is a migrated thread and some comments may be shown as answers.

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

1 Answer 27 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ahmed
Top achievements
Rank 1
Ahmed asked on 03 Sep 2012, 08:37 PM
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.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Sep 2012, 05:24 AM
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.
Tags
Scheduler
Asked by
Ahmed
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or