selected resource OnClientTimeSlotClick

4 posts, 0 answers
  1. lital
    lital avatar
    1 posts
    Member since:
    May 2008

    Posted 10 Jun 2008 Link to this post

    I have Schedular control that include 3 resources, on OnClientTimeSlotClick event I need to know which resource is selected.

  2. Dimitar Milushev
    Dimitar Milushev avatar
    555 posts

    Posted 12 Jun 2008 Link to this post

    Hi lital,

    You can use eventArgs.get_targetSlot().get_resource() to get the resource associated with the clicked slot.

    Dimitar Milushev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. EZNet Support
    EZNet Support avatar
    12 posts
    Member since:
    Jul 2012

    Posted 11 May 2011 Link to this post

    function OnClientTimeSlotClick(sender, eventArgs)
              var strResourceID = eventArgs.get_targetSlot().get_resource()

    I am trying to what the Original Poster was trying to do im running into a problem following the response in this thread.

    This event which is triggered from the RadScheduler Control


    This suggestion does not give the resource ID of the selected TimeSlot.
    According to your documentation the only 2 are:
    • get_time() - returns the time of the slot that was clicked.
    • get_domEvent() -returns a reference to the raw DOM event.
  4. Veronica
    Veronica avatar
    1213 posts

    Posted 16 May 2011 Link to this post


    Please note that our documentation is not very precise. We are doing our best to update it but sometimes we just omit some articles. What Dimitar suggested is correct. You can take the text of the current Resource when you click on a timeslot by this code:

    function OnClientTimeSlotClick(sender, args) {

    So if you have grouped the RadScheduler by "Room" resources as shown in this demo - you will get "Margaret Morrison Main Room" or "Black Auditorium" as a result from the code above.

    All the best,
    Veronica Milcheva
    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.

Back to Top