I'm working on a project that has multiple resources that are able to be reserved for certain periods of time. Ex: projectors, laptops, conference rooms.
What I'm trying to do is set an availability to those resources that aren't being reserved and take those that are in use off of the resource list. I am also trying to make sure that if there's a recurring reservation, (ex: conference room A is needed every Wednesday from 9:00-10:00am) the resource is only blocked during that time on Wednesday and not completely unavailable.
Any help on this would be appreciated.
Amanda
8 Answers, 1 is accepted
0
Hi Amanda,
The Resource Availability example will help you get started.
All the best,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
The Resource Availability example will help you get started.
All the best,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Amanda
Top achievements
Rank 1
answered on 25 Feb 2009, 03:30 PM
Hello again Peter,
This example will work for marking the availabity when it's in use however, I want to be able to add the resource back to the list when it is available.
For example, Mary has the Conference Room booked from 10:00 - 11:00am on Wednesday.
In your demo, it will take the Conference Room off of the list completely and it doesn't appear available anytime that isn't between 10 and 11... so if Bob wants to reserve the Conference Room at 1:30, it doesn't appear on the list as available. How would I set it up so that the resource is only unavailable for specific periods of time that it's booked and available for the rest of the time?
Thanks for your help,
Amanda
This example will work for marking the availabity when it's in use however, I want to be able to add the resource back to the list when it is available.
For example, Mary has the Conference Room booked from 10:00 - 11:00am on Wednesday.
In your demo, it will take the Conference Room off of the list completely and it doesn't appear available anytime that isn't between 10 and 11... so if Bob wants to reserve the Conference Room at 1:30, it doesn't appear on the list as available. How would I set it up so that the resource is only unavailable for specific periods of time that it's booked and available for the rest of the time?
Thanks for your help,
Amanda
0
Accepted
Hello Amanda,
The recently released Beta of Q1 2009 includes a revised version of the Resource Availability example that works as you expect it to. You can see it at http://demos.telerik.com/aspnet-ajax-beta/scheduler/examples/resourceavailability/defaultcs.aspx
All the best,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
The recently released Beta of Q1 2009 includes a revised version of the Resource Availability example that works as you expect it to. You can see it at http://demos.telerik.com/aspnet-ajax-beta/scheduler/examples/resourceavailability/defaultcs.aspx
All the best,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Amanda
Top achievements
Rank 1
answered on 26 Feb 2009, 02:19 PM
Hello Dimitar,
Thanks for that reference.
It helps in the way that what I really want to accomplish is set up like the "Users" functionality however, I cannot get it to perform that way for the resources.
I have a dropdown list with the resources that are available to be reserved, much like the dropdown for the Users on the demo... what the demo does is remove the name from the list once they are in a meeting at a certain time and adds them back to the list when they're available. That's exactly what I want to accomplish! Except, I cannot get it to work for the life of me!
Any suggestions?
Thanks again!
Amanda
Thanks for that reference.
It helps in the way that what I really want to accomplish is set up like the "Users" functionality however, I cannot get it to perform that way for the resources.
I have a dropdown list with the resources that are available to be reserved, much like the dropdown for the Users on the demo... what the demo does is remove the name from the list once they are in a meeting at a certain time and adds them back to the list when they're available. That's exactly what I want to accomplish! Except, I cannot get it to work for the life of me!
Any suggestions?
Thanks again!
Amanda
0
Amanda
Top achievements
Rank 1
answered on 26 Feb 2009, 04:27 PM
Hi again Dimitar,
I was able to play with the code and get the scheduler to do what I need it to do. The final thing I would like before I'm pretty much satisfied with my project is to have a popup window saying something along the lines of "An appointment exists in the timeslot you've requested."
Is there any way to tap into the style of the Delete Confirmation box and make a popup window with the same style?
Thanks,
Amanda
I was able to play with the code and get the scheduler to do what I need it to do. The final thing I would like before I'm pretty much satisfied with my project is to have a popup window saying something along the lines of "An appointment exists in the timeslot you've requested."
Is there any way to tap into the style of the Delete Confirmation box and make a popup window with the same style?
Thanks,
Amanda
0
Accepted
Hi Amanda,
You can use RadWindow to call radalert dialog. Simply add a RadWindowManager and edit the code from the Resource Availability example as follows:
All the best,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You can use RadWindow to call radalert dialog. Simply add a RadWindowManager and edit the code from the Resource Availability example as follows:
function warnIfOccupied(start, end, sender, args) |
{ |
var slot = args.get_targetSlot(); |
var appointment = args.get_appointment(); |
if (isUserOccupied(sender, start, end, appointment)) |
{ |
radalert("An appointment exists in the timeslot you have requested", 330, 100,'RadAlert custom title'); |
args.set_cancel(true); |
} |
else if (isRoomOccupied(sender, start, end, slot, appointment)) |
{ |
radalert("An appointment exists in the timeslot you have requested", 330, 100,'RadAlert custom title'); |
args.set_cancel(true); |
} |
appointment.get_element().style.border = ""; |
} |
//* * * |
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"> |
</telerik:RadWindowManager> |
All the best,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Amanda
Top achievements
Rank 1
answered on 27 Feb 2009, 01:36 PM
Thank you very much for that, Peter! You've been very helpful in helping me with my first time using RadScheduler, bravo!
Like I mentioned before, is there anyway to find the customizations for the "Delete Appointment" confirmation box to make my RadWindows styles match?
Have a good weekend!
Amanda
Like I mentioned before, is there anyway to find the customizations for the "Delete Appointment" confirmation box to make my RadWindows styles match?
Have a good weekend!
Amanda
0
Hi Amanda,
All RadScheduler skins have special css styles for the modal dialog. For example, consider the Default skin:
I suggest you review these help topics:
How skins work, Skin registration, and Modifying built-in skins. They will help you find the skins for the RadControls and show you how to edit and use them. You will have to customize the RadWindow skin using the css styles for the modal dialogs for RadScheduler and then register the modified skin manually. If you need any further help with this, feel free to let us know.
Best wishes,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
All RadScheduler skins have special css styles for the modal dialog. For example, consider the Default skin:
/* modal dialogs */ |
.RadScheduler .rsModalWrapper .rsModalDialog |
{ |
border-color: #d6d6d6; |
} |
.RadScheduler .rsModalWrapper .rsModalOuter |
{ |
border-color: #868686; |
} |
.RadScheduler .rsModalWrapper .rsModalInner |
{ |
border-color: #ededed; |
} |
.RadScheduler_Default .rsModalWrapper .rsModalIcon, |
.RadScheduler_Default .rsModalWrapper .rsModalButtons a |
{ |
background: url('Scheduler/rsSprites.gif') no-repeat; |
} |
.RadScheduler_Default .rsModalWrapper .rsModalIcon |
{ |
background-position: 0 -526px; |
} |
.RadScheduler_Default .rsModalWrapper .rsModalButtons a |
{ |
background-position: 0 -466px; |
border-color: #2d2d2d; |
color: #fff; |
} |
I suggest you review these help topics:
How skins work, Skin registration, and Modifying built-in skins. They will help you find the skins for the RadControls and show you how to edit and use them. You will have to customize the RadWindow skin using the css styles for the modal dialogs for RadScheduler and then register the modified skin manually. If you need any further help with this, feel free to let us know.
Best wishes,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.