Using RadCalendar and I thought is would be simple
I want all dates in the past to be disabled and I thought this would do it:
private void radCalendar1_ElementRender(object sender, RenderElementEventArgs e)
{
if (e.Day.Date < DateTime.Now)
e.Day.Disabled = true;
}
Th goals is to have it look like this but it seems to have no effect and I can selected dates that the code set as disabled.
What am I missing?
Thanks
Carl
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="AimmsApp.Task.Views.AgendaMenu"
xmlns:resx="using:AimmsApp.Resources"
xmlns:input="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
xmlns:views="clr-namespace:AimmsApp.Task.Views;assembly=AimmsApp"
Title="{x:Static resx:Resources.Agenda}">
<AbsoluteLayout x:Name="mainLayout">
<input:RadCalendar x:Name="calendar" ViewMode="Agenda" AppointmentsSource="{Binding Appointments}">
<input:RadCalendar.AgendaViewSettings>
<input:AgendaViewSettings MonthItemFormat="YYYY MMM"
WeekItemStartDateFormat="dd MMMM"
WeekItemEndDateFormat="dd"
DayItemFormat="EEE d MMM"
AppointmentItemTimeFormat="HH mm"
AppointmentItemEndDateFormat="MMM d"
AppointmentItemStartDateFormat="MMM d"
IsHeaderSticky="True"
/>
</input:RadCalendar.AgendaViewSettings>
<input:RadCalendar.BindingContext>
<views:CalendarView />
</input:RadCalendar.BindingContext>
</input:RadCalendar>
</AbsoluteLayout>
</ContentPage>
I tried with scheduler but there is no agenda view maybe somehow with dayview and remove the hours?
Is there a way, to get the RadCalendar to view similar to the calendar view in OUTLOOK.
This is what I am looking for:
Is there no API that basically provides?
It looked okay at first because it was implemented like the code below. However, pressing Next Button will not update on days other than that month.
private void radCalendar1_ElementRender(object sender, RenderElementEventArgs e)
{
if (e.Day.Date.Year == DateTime.Now.Year
&& e.Day.Date.Month == DateTime.Now.Month
&& e.Day.Date.DayOfWeek == DayOfWeek.Sunday)
e.Element.ForeColor = Color.Red;
}
First
After, Next Button Click
Changed font and height of navigation bar.
However, you cannot change the size and location of the Previous/next button. What should I do?
hi
How to localization the calendar in the filter radgridview
image atached
thanks
private void radDateTimePicker_RootElement_MouseWheel(object sender, MouseEventArgs e)
{
if(e.Delta>0)
{
radDateTimePicker.Value.AddMonths(1);
}
}
hi
i have tow problem
1-how to change backcolor all friday(days) on calendar(datetimepicker)
my code not work
private void radDateTimePickerStart_ElementRender(object sender, RenderElementEventArgs e) { if (e.Day.Date.DayOfWeek==DayOfWeek.Friday) { e.Element.BackColor = Color.Red; } }
2-in atache image
title calendar not change CultureInfo("fa-IR", true);
Hi guys,
I am new in the C# winform design and I am trying to create a scheduler to help manager organize employee timesheet and do the punch-in punch-out. There are couple things I need some helps.
1) When I am reading the help form, I found a video about introduction of RadScheduler. https://www.youtube.com/watch?v=RHgMwE2vlsc&t=10s
But when I'm going to Blogs.telerik.com/robertshoemate I cannot find source code. Could you tell me where I can find source code? That really help me to understand how radscheduler working
2)
When I am desining Radscheduler form, The UI is always said "new appointment" and when I click "add new appointment" button the edit appointment textbox is setup in specifc form (I attached picture down below)
Could tell me where I can design this edit_appointment form? I want to change this UI. For example, change the subject Name or delete couple textbox
Regards,
Mike
hi
how handling error
System.ArgumentOutOfRangeException: 'Day must be between 1 and 29 for month 12.
Parameter name: day'
i try handling in key peress but show error
my cod is
public static bool CheckIsLeapYear(DateTime date)
{
PersianCalendar pc = new PersianCalendar();
int year, day;
year = pc.GetYear(date);
day = pc.GetDayOfMonth(date);
bool result = false;
bool isleapyear = false;
isleapyear = pc.IsLeapYear(year);
if (isleapyear!=true && day>29)
{
result= true;
}
return result;
}
----------------------------------------------------------------------------------------------------
private void radDateTimePickerDateOfBirth_KeyDown(object sender, KeyEventArgs e)