Passing Resources to External Edit Radwindow

18 posts, 0 answers
  1. Luis
    Luis avatar
    3 posts
    Member since:
    Sep 2007

    Posted 12 Nov 2007 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 16 Nov 2007 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Irina
    Irina avatar
    20 posts
    Member since:
    Sep 2007

    Posted 23 Nov 2007 Link to this post

    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.
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 30 Nov 2007 Link to this post


    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
  6. Irina
    Irina avatar
    20 posts
    Member since:
    Sep 2007

    Posted 30 Nov 2007 Link to this post

    Hi. Thank you for your response. Do you know a date when that will be done?

    Irina
  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 01 Dec 2007 Link to this post

    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
  8. Doug Odegaard
    Doug Odegaard avatar
    51 posts
    Member since:
    Oct 2004

    Posted 21 Feb 2008 Link to this post

    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
  9. Luis
    Luis avatar
    3 posts
    Member since:
    Sep 2007

    Posted 21 Feb 2008 Link to this post

    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);  
            }  
     
  10. Martin de Ruiter
    Martin de Ruiter avatar
    99 posts
    Member since:
    Jun 2005

    Posted 14 Mar 2008 Link to this post

    Is it also possible to retrieve the resource OnClientTimeSlotClick, when in resource view?

    For example:

    function

    TimeSlotClick(sender, eventArgs)
    {
    alert(eventArgs.get_resource().key);
    }

  11. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 17 Mar 2008 Link to this post

    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
  12. Martin de Ruiter
    Martin de Ruiter avatar
    99 posts
    Member since:
    Jun 2005

    Posted 17 Mar 2008 Link to this post

    Thanks, I hope it can be included in the upcoming release.

    Kind regards,
    Martin de Ruiter
  13. Irina
    Irina avatar
    20 posts
    Member since:
    Sep 2007

    Posted 25 Apr 2008 Link to this post

    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.

  14. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 25 Apr 2008 Link to this post

    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
  15. vassu
    vassu avatar
    7 posts
    Member since:
    Apr 2008

    Posted 14 May 2008 Link to this post

    Hi,
    I am still facing the problem.
    eventArgs.get_resource().get_key
    I get null value
  16. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 14 May 2008 Link to this post

    Hello vassu,

    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
  17. vassu
    vassu avatar
    7 posts
    Member since:
    Apr 2008

    Posted 15 May 2008 Link to this post

    hello,
    i tried the following
    eventArgs.get_resource().get_key()
    still I am getting a null value.

  18. vassu
    vassu avatar
    7 posts
    Member since:
    Apr 2008

    Posted 15 May 2008 Link to this post

    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);
                }
  19. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 16 May 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017