This is a migrated thread and some comments may be shown as answers.

Link button does not occurs in Timeline view column header.

1 Answer 33 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Deepak Saboji
Top achievements
Rank 1
Deepak Saboji asked on 08 Apr 2011, 07:01 AM

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

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 Apr 2011, 12:33 PM
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.

Tags
Scheduler
Asked by
Deepak Saboji
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or