Hi all,
The use case that I am triying to replicate is that we have some events and these can be daily/weekly/monthly/yearly recurring. So I decided to use the calendar & Scheduling component as it provided the recurrence option. When I tested the daily and weekly recurrended options it worked perfectly but to my surprise when trying to get the events recurring every month or year the trouble started.
Even tought I am using the RecurrenceFrequency.Monthly as my frecuency rule, as we can see from the image it still seem to put it as a daily recurrence. Same happens when the RecurrenceFrequency.Yearly option is used. Here the code used:
foreach (Evento evento in this.ListaEventosAgenda)
{
EventData eventoNuevo = new EventData() {StartDate=evento.fechaInciio,EndDate=evento.fechaFin,Title=evento.titulo,LeadBorderColor = Color.FromHex(evento.colorCategoria),ItemBackgroundColor=Color.White,
Id=evento.id,idOrg=evento.idOrg,idCategoria=evento.idCategoria,imageUrl=evento.fotoUrl,Detail=evento.descripcion,IsAllDay=evento.isAllDay,recurrenciaAnual= evento.recurrenciaAnual,recurrenciaMensual=evento.recurrenciaMensual,
recurrenciaSemanal=evento.recurrenciaSemanal,recurrenciaDiaria=evento.recurrenciaDiaria, categoria=evento.categoria,Color = Color.FromHex(evento.colorCategoria)
};
//StartDate: evento.fechaInciio,endTime: evento.fechaFin,eventText: evento.titulo,leadColor: Color.FromHex("59B6B8"),itemColor: Color.White,
//detalles: evento.descripcion, id: evento.id,imageUrl: evento.fotoUrl, IsAllDay: evento.isAllDay
RecurrenceRule recurrenceRule = null;
if (evento.recurrenciaDiaria)
{
//var recurrencePattern = new RecurrencePattern(new int[] { }, RecurrenceDays.WeekDays, RecurrenceFrequency.Daily, 1, null, null);// { MaxOccurrences = 37 };
//recurrenceRule = new RecurrenceRule(recurrencePattern);
recurrenceRule = new RecurrenceRule(new RecurrencePattern()
{
Frequency = RecurrenceFrequency.Daily,
});
eventoNuevo.RecurrenceRule = recurrenceRule;
}
else if (evento.recurrenciaSemanal)
{
//var recurrencePattern = new RecurrencePattern(new int[] { }, RecurrenceDays.WeekDays, RecurrenceFrequency.Weekly, 7, null, null);// { MaxOccurrences = 37 };
recurrenceRule = new RecurrenceRule(new RecurrencePattern()
{
Frequency = RecurrenceFrequency.Weekly,
});
try
{
eventoNuevo.RecurrenceRule = recurrenceRule;
}
catch (Exception error)
{
Debug.WriteLine(error.Message); ;
}
}
else if (evento.recurrenciaMensual)
{
var a = eventoNuevo.StartDate.DayOfWeek;
//var recurrencePattern = new RecurrencePattern(new int[] { }, RecurrenceDays.WeekDays, RecurrenceFrequency.Monthly, 30, null, null);// { MaxOccurrences = 37 };
recurrenceRule = new RecurrenceRule(new RecurrencePattern()
{
Frequency = RecurrenceFrequency.Monthly,
});
eventoNuevo.RecurrenceRule = recurrenceRule;
}
else if (evento.recurrenciaAnual)
{
//var recurrencePattern = new RecurrencePattern(new int[] { }, RecurrenceDays.WeekDays, RecurrenceFrequency.Daily, 365, null, null);// { MaxOccurrences = 37 };
recurrenceRule = new RecurrenceRule(new RecurrencePattern()
{
Frequency = RecurrenceFrequency.Yearly,
});
eventoNuevo.RecurrenceRule = recurrenceRule;
}
this.Events.Add(eventoNuevo);
}
Hi,
I am trying to add the Xamarin libraries to a project I am working on. I have the Nuget source configured properly: When I search for Telerik libraries they all appear correctly, however they fail to install.
Restoring packages for /******.csproj... Restoring packages for .NETStandard,Version=v2.1... GET https://api.nuget.org/v3-flatcontainer/telerik.ui.for.xamarin.datacontrols.lite/index.json NotFound https://api.nuget.org/v3-flatcontainer/telerik.ui.for.xamarin.datacontrols.lite/index.json 306ms Resolving conflicts for .NETStandard,Version=v2.1... Unable to find package Telerik.UI.for.Xamarin.DataControls.Lite. No packages exist with this id in source(s): nuget.org Package restore failed. Rolling back package changes for '****'.
As shown in the figure
Also any issues that you came up with such as speed of executing the tests. How and where did you run the tests and do you think there are better ways to do mobile app testing with some of the new products out there?
My project has a list of objects (Products) and each Product is made up of multiple Components. I display the list of Products in a RadListView, and show the Components in a RadExpander (for each element within the list).
If I add a Product with say, 4 Components to the list, then remove it, then add a Product with 2 Components the area drawn on the screen for the Components is the size that it would be if there were 4 Components. The same is true in reverse, if I add a Product with 2 Components, then remove it and add one with 4, the bottom 2 Components are cut off.
EG - Add 4 Component item - Add Truck (Door/Seat/Wheels/Windows)
Remove it from the list by clicking the X - then add a 2 Component item - Add Car (Door/Seat)
As you can see, the blue RadExpander area still has room for the extra 2 components.
Currently, I am having to clear my entire backing list out every time I Add/Remove a Product from the list to overcome this issue. Surely it should be capable of simply redrawing itself correctly?
I attach a Zip with a test project, currently using the latest available NuGet for Telerik.UI.for.Xamarin (2022.2.505.1), and latest Xamarin.Forms NuGet (5.0.0.2478).
Any assistance would be greatly received - thanks.
Want to have the label appear side by side with the input box not above it.
I see in the android native version a labelposition property but no property shows in xamarin forms.
What is the best approach for this using forms.
We will not be switching to the native controls but I do suspect we will never go past android for this internal application, so a solution that makes ios harder would be acceptable.
hi,
I want to ask you about the height of tabviewheaderitem that I set, but it doesn't seem to take effect. It exceeds the height I set. What should I do to keep it at the same height as the green grid? Thank you