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

custom popup page

2 Answers 94 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Zeus_developer
Top achievements
Rank 1
Zeus_developer asked on 12 Jan 2012, 08:48 PM
Hi,

I want to assign an id to each cell of scheduler, so that when the user do click in scheduler, a custom popup page be displayed and the querystring have the assigned id.

I have the code to open a popup page, but I don't know how to pass some id

    function OnClientAppointmentClick(sender, e)
    {
        var x = newWin('../Tasks/Task.aspx?tid=1', '700', '700', 'S');
        return false;
    }
 
    function OnClientTimeSlotClick(sender, args)
    {
        var x = newWin('../Tasks/Task.aspx', '700', '700', 'S');
        return false;
    }    
   </script>
 
--------------------------------------------------
 
    <telerik:RadScheduler runat="server" ID="RadScheduler1" Height="600px" DayStartTime="00:00:00"
        DayEndTime="23:00:00"
        DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End"
        DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId"
        AppointmentStyleMode="Default"
        ShowResourceHeaders="false"
        DataReminderField="Reminder"
        SelectedView="WeekView"
        ShowFooter="false"
        FirstDayOfWeek="Monday"
        LastDayOfWeek="Saturday"
        OnClientAppointmentClick="OnClientAppointmentClick"
        OnClientTimeSlotClick="OnClientTimeSlotClick"
        ShowHoursColumn="false"
        ShowAllDayRow="false"
        ShowFullTime="false"
        ShowViewTabs="false">
        <AdvancedForm Modal="true" Enabled="false" />
        <TimelineView UserSelectable="false" />
 
        <TimeSlotContextMenuSettings EnableDefault="false" />
        <AppointmentContextMenuSettings EnableDefault="false" />       
        <Reminders Enabled="false" />
    </telerik:RadScheduler>

Thanks for your help.

Segundo Serrano 

2 Answers, 1 is accepted

Sort by
0
Zeus_developer
Top achievements
Rank 1
answered on 13 Jan 2012, 04:28 PM
No idea?
0
Accepted
Plamen
Telerik team
answered on 17 Jan 2012, 05:20 PM
Hello Segundo,
 
You can use the client properties of the client time slot object as shown in this help topic to differentiate the clicked slot.

Hope this will help.
Greetings,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Scheduler
Asked by
Zeus_developer
Top achievements
Rank 1
Answers by
Zeus_developer
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or