Link button does not occurs in Timeline view column header.

2 posts, 0 answers
  1. Deepak Saboji
    Deepak Saboji avatar
    14 posts
    Member since:
    Feb 2010

    Posted 08 Apr 2011 Link to this post

    Hi Team,

    I am using Timeline view with 7 time slots and each slot is representing as a day. My requirement is when I click on Timeline column header; Day view should open for that specific date. But the problem is that when I go to click any of the column headers in Timeline view, there is no link button occurs so I am unable to click any time slot. Please give me some suggestion so that I can implement this functionality.

     

    Thanks,

    Deepak

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 12 Apr 2011 Link to this post

    Hi Deepak,

    Here is one possible solution:
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
           <script type="text/javascript">
               function pageLoad() {
                   var $ = $telerik.$;
                   var scheduler = $find('<%=RadScheduler1.ClientID %>');
                   var ajaxManager = $find('<%=RadAjaxManager1.ClientID %>');
                   $(".rsHorizontalHeaderTable th", scheduler.get_element()).click(function () { ajaxManager.ajaxRequest($(this).text()); });
               }               
           </script>
       </telerik:RadScriptBlock>
       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
           onajaxrequest="RadAjaxManager1_AjaxRequest">
           <AjaxSettings>
               <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                   </UpdatedControls>
               </telerik:AjaxSetting>
           </AjaxSettings>
       </telerik:RadAjaxManager>
       <telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView">
       </telerik:RadScheduler>


    protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
       {
           RadScheduler1.SelectedView = SchedulerViewType.DayView;
           RadScheduler1.SelectedDate = DateTime.Parse(e.Argument);
       }


    Kind regards,
    Peter
    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