I noticed that the client side Appointment object does not have the Resources collection in it.
How can I have an external edit custom RadWindow, for a scheduler with multiple resources?
For example I have 3 Sales People in ResourceView and a database of clients, which can be seen by any of my 3 sales people. So I would have a 3 column ResourceView schedule and a RadWindow popup...with possibly a grid for all the customers (unless you have a better suggestion).
I could add the resource to the advanced edit form but that would create a drop down and with >100+ clients, it would not make sense to filter them through the drop down.
So I need a custom window, RadWindow, but I need to know how to send it the Resource.ID from the Appointment?
Thank you, the scheduler is awesome so far!
LGG
How can I have an external edit custom RadWindow, for a scheduler with multiple resources?
For example I have 3 Sales People in ResourceView and a database of clients, which can be seen by any of my 3 sales people. So I would have a 3 column ResourceView schedule and a RadWindow popup...with possibly a grid for all the customers (unless you have a better suggestion).
I could add the resource to the advanced edit form but that would create a drop down and with >100+ clients, it would not make sense to filter them through the drop down.
So I need a custom window, RadWindow, but I need to know how to send it the Resource.ID from the Appointment?
Thank you, the scheduler is awesome so far!
LGG
17 Answers, 1 is accepted
0
Hi Luis,
Thank you for your question. This is an interesting scenario and we will investigate what is the best way to implement it. When we find the optimal solution we will create a KB article and notify you.
Regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for your question. This is an interesting scenario and we will investigate what is the best way to implement it. When we find the optimal solution we will create a KB article and notify you.
Regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Irina
Top achievements
Rank 1
answered on 23 Nov 2007, 09:52 AM
Hi. I have the same scenario, a scheduler in ResourceView mode and I am using an external add/edit custom RadWindow, so I need the Resource.ID. How can I achive that?
Thank you,
Irina.
Thank you,
Irina.
0
Hi Irina,
This functionality is scheduled on our to-do list but it is not possible at the moment.
Cheers,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Irina
Top achievements
Rank 1
answered on 30 Nov 2007, 02:59 PM
Hi. Thank you for your response. Do you know a date when that will be done?
Irina
Irina
0
Hi Irina,
We will try to provide such an example by the end of this year.
Regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
We will try to provide such an example by the end of this year.
Regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Doug Odegaard
Top achievements
Rank 2
answered on 21 Feb 2008, 11:46 PM
Has anyone found an answer to this question? Is it best to stick with the advanced form if dealing with resources or instead use the radwindow? I myself need to set resources in the radwindow and have not found anything in the documentation.
Thanks in advance.
Doug
Thanks in advance.
Doug
0
Luis
Top achievements
Rank 1
answered on 22 Feb 2008, 12:35 AM
Doug,
The new versions of the Prometheus Rad Controls allow client side resource retrieval:
function AppointmentInserting(sender, eventArgs) |
{ |
var start = formatDate(eventArgs.get_startTime()); |
var isAllDay = eventArgs.get_isAllDay(); |
var ResourceID = eventArgs.get_resource().key; |
// New appointment |
window.radopen("EditForm.aspx?Mode=Insert&Start=" + start + "&IsAllDay=" + isAllDay + "&ResourceID=" + ResourceID , "AdvancedForm"); |
eventArgs.set_cancel(true); |
} |
0
Martin de Ruiter
Top achievements
Rank 2
answered on 15 Mar 2008, 04:22 AM
Is it also possible to retrieve the resource OnClientTimeSlotClick, when in resource view?
For example:
For example:
function
TimeSlotClick(sender, eventArgs)
{
alert(eventArgs.get_resource().key);
}
0
Hello Martin,
Currently, it is not possible, but this is a good suggestion so we will consider it.
Thanks.
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Currently, it is not possible, but this is a good suggestion so we will consider it.
Thanks.
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Martin de Ruiter
Top achievements
Rank 2
answered on 17 Mar 2008, 08:28 PM
Thanks, I hope it can be included in the upcoming release.
Kind regards,
Martin de Ruiter
Kind regards,
Martin de Ruiter
0
Irina
Top achievements
Rank 1
answered on 25 Apr 2008, 01:00 PM
Hi,
With the new version of RadScheduler how can I get the resource id in an external window?
With the old version we used:
var ResourceID = eventArgs.get_resource().key;
But this doesn't work now. What do I have to do to make it work again?
Thank you,
Irina.
With the new version of RadScheduler how can I get the resource id in an external window?
With the old version we used:
var ResourceID = eventArgs.get_resource().key;
But this doesn't work now. What do I have to do to make it work again?
Thank you,
Irina.
0
Hello Irina,
During the Beta of RadControls for ASP.NET AJAX, the client-side API was in a transition period using a compatibility layer to support both ASP.NET AJAX naming conventions and our older naming conventions. Since the suite is no longer in Beta, the compatibility layer was removed and the client-side APIs strictly follow the ASP.NET AJAX conventions.
This includes capitalization of methods. For instance: .AjaxRequest() becomes .ajaxRequest() and .set_Mode() should become .set_mode(). The ASP.NET AJAX conventions also include get_/set_ methods for properties. This means that in your case eventArgs.get_resource().key; should become eventArgs.get_resource().get_key;
Sincerely yours,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
During the Beta of RadControls for ASP.NET AJAX, the client-side API was in a transition period using a compatibility layer to support both ASP.NET AJAX naming conventions and our older naming conventions. Since the suite is no longer in Beta, the compatibility layer was removed and the client-side APIs strictly follow the ASP.NET AJAX conventions.
This includes capitalization of methods. For instance: .AjaxRequest() becomes .ajaxRequest() and .set_Mode() should become .set_mode(). The ASP.NET AJAX conventions also include get_/set_ methods for properties. This means that in your case eventArgs.get_resource().key; should become eventArgs.get_resource().get_key;
Sincerely yours,
Dimitar Milushev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
vassu
Top achievements
Rank 1
answered on 14 May 2008, 01:25 PM
Hi,
I am still facing the problem.
eventArgs.get_resource().get_key
I get null value
I am still facing the problem.
eventArgs.get_resource().get_key
I get null value
0
Hello vassu,
This looks like a type, should be:
Sincerely yours,
Tsvetomir Tsonev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
This looks like a type, should be:
eventArgs.get_resource().get_key()Notice the method call. Hope this helps.
Sincerely yours,
Tsvetomir Tsonev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
vassu
Top achievements
Rank 1
answered on 15 May 2008, 06:11 AM
hello,
i tried the following
eventArgs.get_resource().get_key()
still I am getting a null value.
i tried the following
eventArgs.get_resource().get_key()
still I am getting a null value.
0
vassu
Top achievements
Rank 1
answered on 15 May 2008, 09:45 AM
this is my function. It is still not working
function AppointmentInserting(sender, eventArgs)
{
var ResourceID = eventArgs.get_resource();
alert(ResourceID.get_key());
var start = formatDate(eventArgs.get_startTime());
var isAllDay = eventArgs.get_isAllDay();
// New appointment
window.radopen("addedit.aspx?Mode=Insert&Start=" + start + "&IsAllDay=" + isAllDay, "AdvancedForm");
eventArgs.set_cancel(true);
}
function AppointmentInserting(sender, eventArgs)
{
var ResourceID = eventArgs.get_resource();
alert(ResourceID.get_key());
var start = formatDate(eventArgs.get_startTime());
var isAllDay = eventArgs.get_isAllDay();
// New appointment
window.radopen("addedit.aspx?Mode=Insert&Start=" + start + "&IsAllDay=" + isAllDay, "AdvancedForm");
eventArgs.set_cancel(true);
}
0
Hello Vassu,
Sorry for misleading you with my previous response. Here is the correct code, as posted in the other forum thread:
eventArgs.get_targetSlot().get_resource().get_key()
Best wishes,
Tsvetomir Tsonev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Sorry for misleading you with my previous response. Here is the correct code, as posted in the other forum thread:
eventArgs.get_targetSlot().get_resource().get_key()
Best wishes,
Tsvetomir Tsonev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center