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

Generic Week View

3 Answers 18 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 26 Jun 2012, 05:23 PM
Is there any way to make the scheduler not reliant on actual dates, but just on a 7 day week. I would like to setup an interface where the user can schedule an event to occur on a certain day in the week, for every week. Right now it goes by actual dates, rather than just a generic week.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 28 Jun 2012, 02:02 PM
Hi William,

 
You can set the ShowHeader="false" and the ColumnHeaderDateFormat="dddd" that will transform the RadScheduler to a week without dates:

<telerik:RadScheduler runat="server" ID="RadScheduler1" ShowHeader="false"
           SelectedView="WeekView" onformcreated="RadScheduler1_FormCreated">
           <TimelineView ColumnHeaderDateFormat="dddd" />


 You can also make visible false the DatePickers in the Advanced form by using the following code in the FormCreated event:
protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
   {
       if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
       {
           RadDatePicker startDate = e.Container.FindControl("StartDate") as RadDatePicker;
           startDate.Visible = false;
           RadDatePicker endDate = e.Container.FindControl("EndDate") as RadDatePicker;
           endDate.Visible = false;
       }
   }

Hope this will be helpful.
All the best,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
William
Top achievements
Rank 1
answered on 28 Jun 2012, 04:55 PM
Thanks for the response. I implemented your code, but I'm still having the same resutls. See my code below, and a picture of the result I'm getting attached.


<telerik:RadScheduler ID="replenishmentSchedule" runat="server" SelectedView="WeekView" ShowHeader="false" ShowFooter="false" DayStartTime="08:00:00" DayEndTime="17:00:00" OnDataBinding="replenishmentSchedule_DataBinding" ShowAllDayRow="false">
      <TimelineView ColumnHeaderDateFormat="dddd" />
</telerik:RadScheduler>
0
Plamen
Telerik team
answered on 29 Jun 2012, 12:57 PM
Hi William,

 
It seems that I have send you the code for TimeLineView instead of WeekView. Please excuse me for this. Here is the code that should work for you:

<telerik:RadScheduler runat="server" ID="RadScheduler1" ShowHeader="false"
         SelectedView="WeekView" onformcreated="RadScheduler1_FormCreated">
         <WeekView ColumnHeaderDateFormat="dddd" />
 </telerik:RadScheduler>

Hope this will be helpful.

Greetings,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Scheduler
Asked by
William
Top achievements
Rank 1
Answers by
Plamen
Telerik team
William
Top achievements
Rank 1
Share this question
or