Currently for Calendar swipe is happening left or right , i want to add up and down swipe instead of left and right?
How can i achieve this?
Thanks in advance,
Siva
Hello,
In day View if I set timeLineInterval to 00:30 and end time minute to 45 or 15, Day view endtimes will be 18:30(end time 18:45) or 18:00(end time 18:15).
How can I fix that problem?
Thanks.
<telerikInput:RadCalendar.DayViewSettings>
<telerikInput:DayViewSettings
DayStartTime="9:00:00"
DayEndTime="18:45:00" (but ends 18:30)
TimelineInterval="00:30" />
</telerikInput:RadCalendar.DayViewSettings>
Hi,
We're having a usability issue on iOS only with the Horizontal Bar RadCartesianChart, please look at the attached picture, it seems it only shows the tooltip when you click very precisely towards the tip of the bar, but if you click anywhere else (this is, all the other 90% of the bar) it doesn't show the label. The expected and more intuitive behavior would be to always show the tooltip when tapping anywhere on the bar. Can you advise if this is a known issue and if there is a workaround to achieve this behavior?
I was able to reproduce the issue using a fresh download of the telerik xamarin forms sdk browser from GitHub (https://github.com/telerik/xamarin-forms-sdk/tree/master/XamarinSDK/SDKBrowser/SDKBrowser/Examples) and just adding this code on the "BarSeriesHorizontalCSharp.cs" file, 1 line before the last line of the constructor:
var toolTip = new ChartTooltipBehavior()
{
TriggerMode = ToolTipTriggerMode.Tap
};
chart.ChartBehaviors.Add(toolTip);
Hi,
We're using Telerik controls in our Xamarin Forms application. We use the Material Visual package through out the application to ensure everything looks as expected on all platforms. This looks and works great. The only problem is that when using telerik controls like the auto complete view, it is jarring as the visual is just too different (i.e. the placeholder not moving to be smaller / top left).
As the material view is created / maintained by Xamarin - are you looking to ensure that your controls look / act the same where applicable?
Thanks,
Tom
Is it possible to pass an array of dates to the control to enable specific dates in the calendar rather than just setting a minimum and maximum range?
For example; I may have jobs allocated to a driver on Monday, Tuesday, Thursday and Friday so I don't want the driver selecting Wednesday to see if there are any jobs for that day.
iOS is fine
2019.2.619.1 ListView break RadListView.ItemSwipeContentTemplate for Android
2019.2.603.1 works
On Android with 619, the swipe doesn't hold, it just jumps back. The menu button disappears instantly on swipe. Reverting to 603 works.
<telerikDataControls:RadListView x:Name="list" IsVisible="{Binding IsLoading, Converter={StaticResource NegateBooleanConverter}}" ItemsSource="{Binding Items}" BackgroundColor="White" IsPullToRefreshActive="{Binding IsBusy}" IsPullToRefreshEnabled="True" SelectionMode="None" IsItemSwipeEnabled="True" ItemSwiping="List_OnItemSwiping" ItemSwipeCompleted="List_OnItemSwipeCompleted" SwipeOffset="80, 0, 80, 0" SwipeThreshold="80" Margin="0,0"> <!-- COMMANDS --> <!-- COMMANDS --> <!-- COMMANDS --> <telerikDataControls:RadListView.Commands> <commands:ListViewUserCommand Id="PullToRefreshRequested" Command="{Binding RefreshCommand}" /> <commands:ListViewUserCommand Id="ItemTap" Command="{Binding ItemTappedCommand}" /> </telerikDataControls:RadListView.Commands> <!-- STYLES --> <!-- STYLES --> <!-- STYLES --> <telerikDataControls:RadListView.ItemStyle> <telerikListView:ListViewItemStyle BackgroundColor="White" TextCellTextColor="Transparent" BorderColor="LightGray" BorderWidth="2" BorderLocation="Bottom" /> </telerikDataControls:RadListView.ItemStyle> <telerikDataControls:RadListView.ItemTemplate> <DataTemplate x:DataType="notifications:NotificationItem"> <telerikListView:ListViewTemplateCell> <telerikListView:ListViewTemplateCell.View > <Grid Margin="10,20,10,10" > <Grid.ColumnDefinitions> <ColumnDefinition Width="35"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition> <ColumnDefinition Width="Auto"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> <RowDefinition Height="1"></RowDefinition> </Grid.RowDefinitions> <Image Source="{Binding Image}" Grid.Column="0" Opacity="{Binding ImageOpacity}" VerticalOptions="Start" WidthRequest="30" AutomationId="{Binding Key}" HeightRequest="30"> </Image> <StackLayout Grid.Column="1" Spacing="3"> <Label Text="{Binding Title}" Style="{StaticResource TextSize4ListView}"></Label> <Label Text="{Binding Description}" LineBreakMode="WordWrap" MaxLines="2" Style="{StaticResource TextSize2}"> </Label> </StackLayout> <Label Grid.Column="2" Text="{Binding CreateDate, StringFormat='{}{0:MMM dd, yyyy}'}" Style="{StaticResource TextSize1}" VerticalOptions="Start"> </Label> </Grid> </telerikListView:ListViewTemplateCell.View> </telerikListView:ListViewTemplateCell> </DataTemplate> </telerikDataControls:RadListView.ItemTemplate> <!-- SWIPE --> <!-- SWIPE --> <!-- SWIPE --> <telerikDataControls:RadListView.ItemSwipeContentTemplate> <DataTemplate> <Grid Margin="0" Padding="0" ColumnSpacing="0" RowSpacing="0" BackgroundColor="White"> <Grid.ColumnDefinitions> <ColumnDefinition Width="80" /> <ColumnDefinition Width="*" /> <ColumnDefinition Width="80" /> </Grid.ColumnDefinitions> <!-- EDIT --> <!-- EDIT --> <!-- EDIT --> <Grid Grid.Column="0" BackgroundColor="{StaticResource ErrorColor}" Grid.ColumnSpacing="0" Grid.RowSpacing="0" Padding="0" Margin="0,0"> <telerikInput:RadButton CornerRadius="0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" BackgroundColor="Transparent" Style="{StaticResource FontAwesomeFontIcon}" Text="{x:Static local:FontAwesomeFont.Trash}" TextColor="White" FontSize="{Binding UIButtonSize}" Command="{Binding BindingContext.DeleteCommand, Source={x:Reference list}}" CommandParameter="{Binding}" Clicked="OnButtonClicked"/> </Grid> <Grid Grid.Column="2" BackgroundColor="{StaticResource ErrorColor}" Grid.ColumnSpacing="0" Grid.RowSpacing="0" Padding="0" Margin="0,0"> <telerikInput:RadButton CornerRadius="0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" BackgroundColor="Transparent"Style="{StaticResource FontAwesomeFontIcon}" Text="{x:Static local:FontAwesomeFont.Trash}" TextColor="White" FontSize="{Binding UIButtonSize}" Command="{Binding BindingContext.DeleteCommand, Source={x:Reference list}}" CommandParameter="{Binding}" Clicked="OnButtonClicked"/> </Grid> </Grid> </DataTemplate> </telerikDataControls:RadListView.ItemSwipeContentTemplate> </telerikDataControls:RadListView>
In the documentation for the calendar "SelectionChanged" event it states;
A ValueChangedEventArgs<object> object which provides old and new value of the SelectedDate. The values are of type object, but can be cast to the DateTime type.
The values are actually doubles and when the control is first bound (prior to the SelectionDate being set) my "SelectionChanged" handler is called with the following values;
args.NewValue: 1.66076571237391E-314
args.OldValue: -3.49537279385073E+40
If I attempt to convert either of the values using "Convert.ToDateTime(args.<value>)" I get the exception "Invalid cast from 'Double' to 'DateTime'".
If I attempt to convert the old value using "DateTime.FromOADate(args.args.OldValue)" I get the exception "Not a legal OleAut date".
And if I attempt to convert the old value using "TimeSpan.FromSeconds(args.OldValue)" I get the exception "TimeSpan overflowed because the duration is too long".
Can you clarify;
1) Exactly what "date" values are being passed in the ValueChangedEventArgs, and
2) What is the correct way to convert these to DateTime values.
My XAML is;
<
telerikInput:RadCalendar
x:Name
=
"RunCalendar"
Grid.Row
=
"0"
Grid.RowSpan
=
"3"
Grid.Column
=
"0"
Grid.ColumnSpan
=
"3"
HorizontalOptions
=
"CenterAndExpand"
VerticalOptions
=
"CenterAndExpand"
IsVisible
=
"False"
DisplayDate
=
"{Binding CalendarDate}"
MinDate
=
"{Binding MinRunDate}"
MaxDate
=
"{Binding MaxRunDate}"
SelectedDate
=
"{Binding CalendarDate}"
SelectionChanged
=
"OnDateSelected"
SelectionMode
=
"Single"
/>
My code is;
private
void
OnCalendarClicked(
object
sender, EventArgs e)
{
CalendarDate = RunDate;
RunCalendar.IsVisible =
true
;
}
private
void
OnDateSelected(
object
sender, ValueChangedEventArgs args)
{
DateTime newDate = DateTime.MinValue;
try
{
newDate = DateTime.FromOADate(args.NewValue);
}
catch
{
//Ignore any error
}
DisplayRun(newDate);
}
When OnCalendarClicked is run the CalendarDate is being set to "7/2/2019" (today's date) however the value for newDate in OnDateSelected (which runs immediately after) is "1/1/0001". However if I drill down into "args > base > NewValue" it is a DateTime value with the correct date.
How do I get the correct value for the date?
Hi,
When Updating Xamarin Forms to version 4.0.x.x the ListView hangs the UI and loads very slowly.
Please Check!