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

RadScheduler ContextMenu event not fire on Mozilla

3 Answers 109 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
avinash
Top achievements
Rank 1
avinash asked on 03 Jun 2011, 11:51 AM
Hi,

I have develop web application using dotnetnuke
I have rad scheduler control with two time slot context menu Item
1)New Busy Slot
2)Schedule Lesson

I have two dropdownlist, calender control on the same page also.
The expected functionaliy is open modal popup on context menu clicked.
but problem is OnTimeSlotContextMenuItemClicked event is not fired 1st time ,even it doesnt fire on calender selection changed event or dropdown selection change. I found error in mozillas erro consol screen
" Error: Sys.InvalidOperationException: A control is already associated with the element.
Source File: http://localhost:54484/dotnetnuke/ScriptResource.axd?d=PHma0e-2otry_Ysyy9H2h977jLIeN8DaDTF6ErzwLL_L9Iy1W5rT2cg3BU4MorllD3c_4X0PSAs9XJKkkZku0nl5qDgzkvAliCRsP9dmNilzj8c1cMwntVYsWHdvDmjhMhE3oBeiGlN9xjWr6ZBeJ8QnEcxU3irWPFm4JQ2&t=5c2f384e
Line: 6580"

But if click on any navigate button of scheduler control and then try to clik on context menu then it works fine.
In IE work fine.


pls do reply its very urgent


Thanks

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 06 Jun 2011, 08:17 AM
Hi avinash,

We tested locally the problem and everithing seems to be working fine. Here is the code that we used and a short video of the result:
<telerik:RadScheduler runat="server" ID="RadScheduler1" OnTimeSlotContextMenuItemClicked="RadScheduler1_TimeSlotContextMenuItemClicked">
       <TimeSlotContextMenus>
           <telerik:RadSchedulerContextMenu ID="SchedulerTimeSlotContextMenu" runat="server">
               <Items>
                   <telerik:RadMenuItem Text="New Appointment" Value="a"/>
                   <telerik:RadMenuItem Text="New All Day Event" Value="b" />
               </Items>
           </telerik:RadSchedulerContextMenu>
       </TimeSlotContextMenus>
   </telerik:RadScheduler>
protected void RadScheduler1_TimeSlotContextMenuItemClicked(object sender, TimeSlotContextMenuItemClickedEventArgs e)
{
    Response.Write(e.MenuItem.Text);
}

http://screencast.com/t/UN9M5p4Reimb.

Best wishes,
Plamen Zdravkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
avinash
Top achievements
Rank 1
answered on 06 Jun 2011, 08:31 AM
Hi,
Thanks for your reply,
it works for me only when I click on today, or navigation controls of radscheduler , but if I Change RadCalendar's date and then click on radscheduler,TimeSlotContextMenuItemClicked event not fired , so that I unable to open modal popup.

Thanks
0
Plamen
Telerik team
answered on 06 Jun 2011, 04:23 PM
Hello avinash,

We tested once again according  to the new details that you gave and we still didn't experience any problems.

Can you send us a live url of the issue?

Kind regards,
Plamen Zdravkov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Scheduler
Asked by
avinash
Top achievements
Rank 1
Answers by
Plamen
Telerik team
avinash
Top achievements
Rank 1
Share this question
or