Telerik Forums
UI for Xamarin Forum
1 answer
83 views

This was working fine in a Xamarin Forms (UWP) project

        public void PrintReferralReport(byte[] pdf)
        {
            pdfCurrent = pdf;
            this.pdfViewer.Source = pdf;
            memberReferralPopUpVM.IsPDFGridVisible = true;

        }

<telerikPdfViewer:RadPdfViewer x:Name="pdfViewer" Grid.Row="1"/>

As soon as Telerik.Documents.Core was added to a different project (doesn't even have to be used), the viewer stopped appearing.

<PackageReference Include="Telerik.Documents.Core" Version="2022.3.1108" />

<PackageReference Include="Telerik.UI.for.Xamarin" Version="2022.3.1109.1" />
Didi
Telerik team
 updated answer on 21 Nov 2022
1 answer
321 views

Hello Support,

We are using RadListView and RadDataGrid controls in our UWP and iOS applications. On these controls we observed there is a lag when we scroll fast, this lag is with the control's default scroll  Please see attached video (UWP_without_scrollview.mp4 and iOS_without_scrollview.mp4) for our UWP and iOS applications, you will see the white space when scrolling very fast.   

Further, we tried adding Xamarin's ScrollView over the RadListView and RadDataGrid controls, with this we do not see the lag when scrolling fast (see attached video UWP_with_scrollview.mp4 and iOS_with_scrollview.mp4).

In the documention for the RadListView and RadDataGrid controls, (refernce https://docs.telerik.com/devtools/xamarin/controls/listview/listview-getting-started#:~:text=Telerik.XamarinForms.DataControls%22-,WARNING,-%3A%20RadListView%20control%20provides), it is mentioned that if we add Scrollview to these controls, it would have issue withe the UI Virtulization or Gesture Mechanism. Kindly let us know if can continue using Xamarian ScrollView with the RadListView and RadDataGrid controls?

Also please let us know if there is any other way to get around the lagging issue with using the the RadListView and RadDataGrid default Scroll.

Didi
Telerik team
 answered on 14 Nov 2022
0 answers
235 views

Hi,

We are sometimes getting the following crash on Android after the user has closed a RadPopup. It does not happen every time so it looks like it is a timing issue. We have gotten the latest Telerik release and it is still happening in that version.

Below is the stack trace.

Regards

Anthony

System.ObjectDisposedException  Message=Cannot access a disposed object. Object name: 'Android.Widget.PopupWindow'.

0x29 in Java.Interop.JniPeerMembers.AssertSelf at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.cs:153,5
0x1 in Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualVoidMethod at /Users/runner/work/1/s/xamarin-android/external/Java.Interop/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:57,5
0x12 in Android.Widget.PopupWindow.Dismiss at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-29/mcw/Android.Widget.PopupWindow.cs:1635,5
0xD in Telerik.XamarinForms.Primitives.RadPopup.DismissPopupWindow
0x12 in Telerik.XamarinForms.Primitives.RadPopup.SetPopupIsOpen
0x3A in Telerik.XamarinForms.Primitives.RadPopup.UpdatePopup
0x36 in Telerik.XamarinForms.Primitives.PopupBase.Animation_ProgressChanged
0x12 in Telerik.XamarinForms.Common.RadDoubleAnimation.OnProgressChanged
0x2C in Telerik.XamarinForms.Common.RadDoubleAnimation.OnAnimationTick
0x3 in Telerik.XamarinForms.Common.RadAnimation.Telerik.XamarinForms.Common.Animations.IDoubleAnimationListener.OnAnimationTick
0x42 in Telerik.XamarinForms.Common.Animations.AnimationTask.NotifyTick
0x53 in Telerik.XamarinForms.Common.Animations.AnimationTask.Tick
0x1B in Telerik.XamarinForms.Common.Animations.AnimationManager.HandleAnimationsTick
0x0 in Telerik.XamarinForms.Common.Animations.AnimationManager.TickAnimations
0x0 in Telerik.XamarinForms.Common.Animations.AnimationManager.TickAnimationsFunc
0x6 in Xamarin.Forms.Forms.AndroidPlatformServices. at D:\a\1\s\Xamarin.Forms.Platform.Android\Forms.cs:893,6
0xE in Java.Lang.Thread.RunnableImplementor.Run at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Java.Lang/Thread.cs:36,6
0x8 in Java.Lang.IRunnableInvoker.n_Run at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-29/mcw/Java.Lang.IRunnable.cs:84,4
0x8 in Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PP_V at /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:22,5

Anthony
Top achievements
Rank 1
Veteran
 asked on 09 Nov 2022
1 answer
254 views

I want to perform some operation when the RadComboBox, RadTimePicker and RadDatePicker is focused or tapped. But even if I attach these events, they are not triggered.

Is there a way to do so. Kindly help.

Didi
Telerik team
 answered on 03 Nov 2022
1 answer
88 views

I am working on Xamarin UWP project and have used the following code mentioned below for calendar cell styling. I am not able to change text color of specific dates in other month, it always display other month dates as gray,  can you please provide me a solution.


private CalendarCellStyle EvaluateCellStyle(CalendarCell cell)
{
    Color background = default(Color);
    Color selectedCellForegroundColor = default(Color);
    Color todayBorderColor = Color.FromRgb(115, 174, 239);
    double dayNamesFontSize = default(double);
    double fontSize = default(double);
    Thickness todayBorderThickness = default(Thickness);

    switch (Device.RuntimePlatform)
    {
        case "iOS":
            background = Color.White;
            selectedCellForegroundColor = Color.White;
            fontSize = 14;
            dayNamesFontSize = 14;
            todayBorderThickness = new Thickness(2);
            break;
        case "Android":
            background = Color.White;
            selectedCellForegroundColor = Color.FromHex("FF0066CC");
            fontSize = 15;
            dayNamesFontSize = 15;
            todayBorderThickness = new Thickness(1);
            break;
        case "UWP":
            background = Color.FromRgb(30, 30, 30);
            selectedCellForegroundColor = Color.White;
            fontSize = 17;
            dayNamesFontSize = 17;
            todayBorderThickness = new Thickness(2);
            break;
    }

    if (cell.Type == CalendarCellType.DayName)
    {
        return new CalendarCellStyle
        {
            BackgroundColor = Color.LightGray,
            FontSize = dayNamesFontSize,
            FontAttributes = FontAttributes.Bold,
            TextColor = Color.FromRgb(0, 122, 255)
        };
    }

    var defaultStyle = new CalendarCellStyle
    {
        BackgroundColor = background,
        FontSize = fontSize,
        FontAttributes = FontAttributes.None,
        TextColor = Color.FromRgb(139, 209, 0)
    };

    if (cell is CalendarDayCell dayCell)
    {
        if (dayCell.IsFromCurrentMonth)
        {
            if (dayCell.IsToday)
            {
                defaultStyle.TextColor = Color.FromRgb(0, 122, 255);
                defaultStyle.FontAttributes = FontAttributes.Bold;
                defaultStyle.BorderColor = todayBorderColor;
                defaultStyle.BorderThickness = todayBorderThickness;
            }
        }
        else
        {
            if (dayCell.IsToday)
            {
                defaultStyle.TextColor = todayBorderColor;
                defaultStyle.BorderColor = todayBorderColor;
                defaultStyle.BorderThickness = todayBorderThickness;
            }
            else
            {
                
                  if (dayCell.Date.DayOfWeek == DayOfWeek.Sunday || dayCell.Date.DayOfWeek == DayOfWeek.Saturday)
                  {
                           defaultStyle.TextColor = Color.Red;
                  }
                  else
                  {
                           defaultStyle.TextColor = Color.Gray;
                  }

            }
        }

        if (dayCell.IsSelected)
        {
            defaultStyle.TextColor = selectedCellForegroundColor;
            defaultStyle.BorderColor = Color.FromHex("FF0066CC");
        }

        return defaultStyle;
    }

    return null; // default style
}

Didi
Telerik team
 answered on 31 Oct 2022
1 answer
134 views

We’re seeing layout issues with RadListView on iOS 16 resulting in unexpected space and padding in the list.

iOS 15 and below is unaffected. Screenshots below. The issue appears to resolve on a subsequent measure/layout, it just shows on the initial layout.

Repro’d using latest Telerik for Xamarin release.

Didi
Telerik team
 answered on 14 Oct 2022
1 answer
81 views
Hello, I am using RadAutoCompleteView control on my code and it works perfectly for Android and IOS. Still, when I use landscape mode for small screens (an issue for IOS and phone is iPhone XR) native soft keyboard hides control and I can't click or move it to the top of the screen to choose some elements. What kind of solution do I have to control this situation?
Didi
Telerik team
 answered on 13 Oct 2022
1 answer
76 views

When I tap on the RadComboBox arrow in listview it gives the below exception. Kindly help

event registration is overwriting existing delegate. either just use events or your own delegate: xamarin.forms.platform.ios.listviewrenderer+listviewdatasource uikit.uiscrollview+_uiscrollviewdelegate

Didi
Telerik team
 answered on 10 Oct 2022
1 answer
116 views

Hi there,

We use a Radlistview to show a series of items with prices and a +/- to change the amount. We have made those items swipeable, so the user can easily swipe those items away to delete them. See example below (sensitive information is censored):

However, even when users do not swipe the item to the right, they can not interact with the minus button. This seems to be because the button is in the swipeable area. If we make the swipeable area smaller, some of the minus button is interactable, and if we make it larger, the plus button also stops being interactable.

Note that the minus button can't be interacted with even if the button is visible.

 

 

Is this design as intended, or is this a bug? If it is intended, what is the recommended way to allow the button to be interacted with, while also allowing the list item to be swiped?


The code used for this is:
<ContentPage
    xmlns:telerikDataControls="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls"
    xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
    xmlns:telerikListView="clr-namespace:Telerik.XamarinForms.DataControls.ListView;assembly=Telerik.XamarinForms.DataControls"
    xmlns:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"
    xmlns:xct="http://xamarin.com/schemas/2020/toolkit">

<telerikDataControls:RadListView
                    Grid.Row="0"
                    IsItemSwipeEnabled="True"
                    ItemTemplateSelector="{StaticResource ReceiptDataSelector}"
                    ItemsSource="{Binding Receipt.ReceiptLines}"
                    SelectedItems="{Binding SelectedReceiptLines}"
                    SelectionMode="Multiple"
                    SwipeOffset="90, 0, 0, 0"
                    SwipeThreshold="20">
                    <telerikDataControls:RadListView.SelectedItemStyle>
                        <telerikListView:ListViewItemStyle BackgroundColor="{StaticResource SelectionAccentColor}" BorderWidth="0" />
                    </telerikDataControls:RadListView.SelectedItemStyle>
                    <telerikDataControls:RadListView.ItemSwipeContentTemplate>
                        <DataTemplate x:DataType="components:IReceiptLine">
                            <Grid
                                Margin="0"
                                Padding="0"
                                ColumnSpacing="0"
                                RowSpacing="0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="90" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <telerikInput:RadButton
                                    Grid.Column="0"
                                    Margin="0"
                                    BackgroundColor="Red"
                                    BorderRadius="0"
                                    Command="{Binding RemoveLineCommand, Source={RelativeSource AncestorType={x:Type local:SalePageModel}}}"
                                    CommandParameter="{Binding}"
                                    FontFamily="FontAwesomeSolid"
                                    FontSize="Medium"
                                    Text="&#xf1f8;"
                                    WidthRequest="90" />
                            </Grid>
                        </DataTemplate>
                    </telerikDataControls:RadListView.ItemSwipeContentTemplate>
                </telerikDataControls:RadListView>

code is:

 

Didi
Telerik team
 answered on 22 Sep 2022
1 answer
97 views

Hello Team,

May I have an URL with compatibility between TelerikUIXamarin and Xamarin Forms - history and depndencies? Possibly iOS/XCode.

Thanks

Jacek

Didi
Telerik team
 answered on 22 Sep 2022
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?