custom popup page

3 posts, 1 answers
  1. Zeus_developer
    Zeus_developer avatar
    14 posts
    Member since:
    Jun 2006

    Posted 12 Jan 2012 Link to this post

    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. Zeus_developer
    Zeus_developer avatar
    14 posts
    Member since:
    Jun 2006

    Posted 13 Jan 2012 Link to this post

    No idea?
  3. Answer
    Plamen
    Admin
    Plamen avatar
    3076 posts

    Posted 17 Jan 2012 Link to this post

    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
Back to Top