This is a migrated thread and some comments may be shown as answers.
Radscheduler - DayView - Selected Timeslots
17 Answers 169 Views
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 13 Apr 2011, 09:25 AM
Hi !

I have a little problem with the Radschulder DayView.

We use our own timeslot context menues, now when a a user selects some timeslots, and click on a context menue,
we call the (server side api)

TimeSlotContextMenuItemClicking(object sender, TimeSlotContextMenuItemClickingEventArgs e)


and wanted to get the selected timeslot begin/end time (let us say from 08:00am to 09:30am) with

e.TimeSlot.Start;
e.TimeSlot.End;


but all we get in these to values is, the timeslot where the user hit the context menue (always 30 minutes).

Is there a chance to get the complete selected timeslots, as it is used when adding an appointment client side ?

with best regards
Markus

17 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 15 Apr 2011, 05:25 PM
Hello Markus,

We have already logged this problem. Once we are ready with the implementation we will notify you in this same thread.


Kind regards,
Nikolay Tsenkov
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
Markus
Top achievements
Rank 1
answered on 19 Apr 2011, 08:13 PM
Great thanks.

Do you have any clue in which timespan this will happen ?

best regards
markus
0
Nikolay Tsenkov
Telerik team
answered on 21 Apr 2011, 07:17 PM
Hi Markus,

I apologize, but I can not commit on ETA for this. What I can promise is to let you know as soon as we make a progress on it.


Regards,
Nikolay Tsenkov
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
Markus
Top achievements
Rank 1
answered on 26 May 2011, 02:10 PM
hi nikolay !

are there any news about this ?

kindly regards
markus
0
Nikolay Tsenkov
Telerik team
answered on 27 May 2011, 11:23 AM
Hi Markus,

We haven't implemented that, yet. We will try to include it for one of the next 2 major releases (Q2 or Q3).
It most probably will be included in Q3, because there is very big chance to be a breaking change.


Regards,
Nikolay Tsenkov
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
Markus
Top achievements
Rank 1
answered on 27 May 2011, 12:02 PM
thanks for the information

regards
Markus
0
davideformica
Top achievements
Rank 2
answered on 10 Jan 2012, 01:28 AM
Hi ,
I'm having the same issue,

and I'm using the Q3 timeslotas,

are there any news about how to obtain an array of the selected timeslots?

the only method that can read it seems to ne the "AppointmentInsert",

but unfortunately is not what I want, and moreover I cannot find a way to disable the popup with the 3 buttons "save", "Cancel", "options".

Do you have any suggestion on how to get the selected timeslot values?

Best regards.
0
Plamen
Telerik team
answered on 12 Jan 2012, 05:05 PM
Hi Marga Alonso,

 
You can use the client properties of the Scheduler get_selectedSlots(), get_durationOfSelectedArea() and get_durationBetweenTimeSlots().

As for the second question - if you want to insert or edit directly in the advanced form,  you have to set the StartInsertingInAdvancedForm and StartEditingInAdvancedForm properties to true.

Hope this will be helpful.

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
0
davideformica
Top achievements
Rank 2
answered on 16 Jan 2012, 04:11 AM
Thank you for your Prompt reply.

What I need to do is to access somehow SERVERSIDE the array of TImeSlot I've selected in the MonthView setup of my RADScheduler.  The workaround I've arranged implyes using a RAdschedulerContextMenu with an item that triggers the SERVERSIDE EVENT "CommandAddAppointment".

What I'd like to do is to have a VISIBLE BUTTON on the page that if I click on it I have the same behaviour than the contextmenu item of the radscheduler. The reason is that to see the item you have to RIGHT click on the timeslots, and users dont figure it out alone.

This is my code, do you have any suggestion on how to port the contextmenu funcionality on a permanently visible button on the page? Thank you in advance.

 

 

 <telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="End" DataKeyField="ID"
            OnClientAppointmentDoubleClick="OnClientTimeSlotClick2" OnClientAppointmentMoveStart="OnClientAppointmentMoveStart"
            DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID"
            Skin="Telerik" EnableRecurrenceSupport="False" Height="420px" ShowViewTabs="false"
            AllowEdit="false" EnableDatePicker="False" DataSourceID="SchedulerDataSource"
            DataDescriptionField="Description" SelectedView="MonthView" DataStartField="Start"
            DataSubjectField="Subject" FirstDayOfWeek="Monday" LastDayOfWeek="friday" SelectedDate="01/01/2012"
            EnableViewState="False" >
            <MonthView MinimumRowHeight="3" VisibleAppointmentsPerDay="5" AdaptiveRowHeight="false"
                ReadOnly="false" />
            <MultiDayView NumberOfDays="30" />
            <AppointmentContextMenuSettings EnableDefault="false" />
            <TimelineView UserSelectable="true" GroupingDirection="Horizontal" NumberOfSlots="10" />
            <TimeSlotContextMenus>
                <telerik:RadSchedulerContextMenu ID="SchedulerTimeSlotContextMenu" runat="server">
                    <Items>
                        <telerik:RadMenuItem Text="Guardar" Value="CommandAddAppointment" />
                    </Items>
                </telerik:RadSchedulerContextMenu>
            </TimeSlotContextMenus>
            <AppointmentContextMenus>
                <telerik:RadSchedulerContextMenu runat="server" ID="ContextMenu1">
                    <Items>
                    </Items>
                </telerik:RadSchedulerContextMenu>
            </AppointmentContextMenus>
        </telerik:RadScheduler>

0
Plamen
Telerik team
answered on 18 Jan 2012, 05:12 PM
Hello Marga,

 
You can try to achieve this on the client-side by getting the selected Timeslots and showing the appropriate appointment form like below:

function OnClientClicked(sender, args) {
               var scheduler = $find("<%=RadScheduler1.ClientID%>");
               var selected = scheduler.get_selectedSlots();
               var counter = 0;
               var startSlot;
               var endSlot;
           for (var slot in selected) {
               if (counter == 0) {
 
                   startSlot = selected[counter];
               }
               endSlot = selected[counter];
               counter++;
           }
           scheduler.showInsertFormAt(startSlot, endSlot);
           }  
<telerik:RadButton runat="server" ID="RadButton1" AutoPostBack="false" OnClientClicked="OnClientClicked">
       </telerik:RadButton>
 
       <telerik:RadScheduler runat="server" ID="RadScheduler1"....

Hope this will be helpful.
  Kind regards,
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
0
John
Top achievements
Rank 1
answered on 04 Jul 2012, 02:42 PM
Is there any update regarding this bug? It's still there as of now. Cannot get correct timeslot details from custom contextMenu events.

Thanks
John
0
Plamen
Telerik team
answered on 06 Jul 2012, 12:33 PM
Hi John,

It looks that this issue have not been fixed yet. Please excuse us for the inconveniences. You can follow its progress and vote for increasing its priority in our PITS here.

Regards,
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.
0
Rakesh
Top achievements
Rank 1
answered on 26 Jul 2012, 03:12 PM
Hi,

I am working on RadScheduler. My question is can we extend the start data and end date timings iin Advanced Edit form. Some of my clients are based in other countries and if I want to schedule a meeting after 6 pm or before 8 am. Right now I am not able to do that as my Advanced Edit form only shows timings from 8am to 5:30 pm.

Please advice.

Thanks,
Rakesh
0
Peter
Telerik team
answered on 27 Jul 2012, 03:00 PM
Hi,

Please, see this kb article:

http://www.telerik.com/support/kb/aspnet-ajax/scheduler/how-to-adjust-the-radtimepicker-settings-of-the-advanced-form.aspx

All the best,
Peter
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.
0
Rakesh
Top achievements
Rank 1
answered on 27 Jul 2012, 07:27 PM
Peter,

Thank you. That works.

Regards,
Rakesh
0
Rakesh
Top achievements
Rank 1
answered on 01 Aug 2012, 01:32 PM
Peter,

I have an other issue with Recurring meetings. When I try to edit the single occurence of the recurrence meeting and click on the save button it is firing AppointmentInsert after the Update event and my appointment is getting deleted. And also e.modifiedappointment.subject is not fetching the updated subject. Please advice what could be the issue?

Thanks,
Rakesh
0
Rakesh
Top achievements
Rank 1
answered on 01 Aug 2012, 08:28 PM
Hi,

The issue is resolved. The thing I left is RecurrenceState. Once I assigned the RecurrenceState and save it, everything works.

Thanks,
Rakesh
Asked by
Markus
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Markus
Top achievements
Rank 1
davideformica
Top achievements
Rank 2
Plamen
Telerik team
John
Top achievements
Rank 1
Rakesh
Top achievements
Rank 1
Peter
Telerik team
Share this question
or