Telerik Forums
UI for Xamarin Forum
4 answers
793 views

I am trying to add the assemblies required for the ListView to a Visual Studio Community 2017 project. However, the instructions on the Required Telerik Assemblies page (References after R2 2017 section) do not seem to work for Telerik UI for Xamarin R3 2017. Some of the assemblies listed on the web page are not present in the Telerik UI for Xamarin R3 2017 folder. Can you please provide full instructions on how to manually add the assemblies for Telerik UI for Xamarin R3 2017. Also, on the Register the RadListView Renderer page, the description for Android states:

"You have to add the following lines to the MainActivity.cs file outside the scope of the namespace just after the using statements:

[assembly: ExportRenderer(typeof(Telerik.XamarinForms.DataControls.RadListView), typeof(Telerik.XamarinForms.DataControlsRenderer.Android.ListViewRenderer))] "

However, as you can see below, there is no using statement in the default MainActivity class:

[Activity (Label = "UpTimeMobile", Icon = "@drawable/icon", Theme="@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation,
        ScreenOrientation = ScreenOrientation.Portrait)]
    public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
 protected override void OnCreate (Bundle bundle)
 {
  TabLayoutResource = Resource.Layout.Tabbar;
  ToolbarResource = Resource.Layout.Toolbar;
 
     base.OnCreate (bundle);
 
     global::Xamarin.Forms.Forms.Init (this, bundle);
     LoadApplication (new UpTimeMobile.App ());
 }
}

 

So where should the line of code go?

Lance | Senior Manager Technical Support
Telerik team
 answered on 24 Nov 2017
4 answers
267 views

We are getting the item source of our list from an API. The API is created in such a way that it returns 25 records in  1st time. If we want the next 25 records we need to hit the API again. 

What do you propose how can we use LoadonDemand property:

I can see two different type:

1.Subscribe to LoadOnDemand event and add the loaded data to the source.
2. Create ListViewLoadOnDemandCollection instance as source and pass it to listview ItemsSource property

to get the next 25 records when user scrolls to last item of list. The API might take sufficient time to return the response.

 

 

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 24 Nov 2017
1 answer
44 views
I have noticed that you Xamarin controls use quite a few animations and that they appear to be abstracted into the AnimationContext and Storyboard classes. Is it possible to use these features outside of your controls? It would be nice to keep all animations consistent and leveraging your source code would eliminate a lot of time and trouble in my code as well. Please advise...
Ves
Telerik team
 answered on 23 Nov 2017
3 answers
357 views

hi 

I want to show some additional information on list view items. But those has to be hidden and showed in user interaction. Is there way to add a expander sort of behavior to list view item. Or do u have any other suggestion to solve this?

 

Thank you in advance.

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 22 Nov 2017
3 answers
181 views

Hi there,

This is my second try to use Telerik UI for Xamarin Forms.

I have added the NuGet packages from Telerik NuGet server, and everything builds/works when running in the simulator (I use the RadSegmentedControl).

But, when I compile for the phone, I keep getting an error about some Skiasharp. I dont even use Skiasharp (gauge control), so I have tried every possible solution to remove the reference.

I get this error, when compiling in Visual Studio for Mac :

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(777,3): warning MSB6002: The command-line for the "MTouch" task is too long. Command-lines longer than 32000 characters are likely to fail. Try reducing the length of the command-line by breaking down the call to "MTouch" into multiple calls with fewer parameters per call.
MTOUCH : warning MT0127: Incremental builds have been disabled because this version of Xamarin.iOS does not support incremental builds in projects that include more than one third-party binding libraries.
MTOUCH : error MT2101: Can't resolve the reference 'SkiaSharp.SKTypeface SkiaSharp.SKTypeface::FromStream(System.IO.Stream,System.Int32)', referenced from the method 'System.Void Telerik.XamarinForms.SkiaSharp.SkiaUtilities::EnsureFontelloTypeface()' in 'SkiaSharp, Version=1.59.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'.

Stefan Nenchev
Telerik team
 answered on 22 Nov 2017
5 answers
127 views

I have a swipe button that is connected to a clicked trigger to change the text and button. On iOS it only changes the color and text of the specific button that was pressed. On Android, it changes all of the buttons colors and text. This is how I have the trigger setup:

<Button.Triggers>
    <EventTrigger Event="Clicked">
        <local:TasksButtonTriggerAction />
    </EventTrigger>
</Button.Triggers>

 

And this is the TasksButtonTriggerAction implementation:

public class TasksButtonTriggerAction : TriggerAction<Button>
    {
        protected override void Invoke(Button sender)
        {
            if (sender.Text.ToLower() == "start")
            {
                sender.BackgroundColor = Color.Red;
                sender.Text = "Complete";
                sender.TextColor = Color.White;
            }
            else
            {
                sender.BackgroundColor = Color.FromHex("#80BD01");
                sender.Text = "Start";
                sender.TextColor = Color.FromHex("#15315A");
            }
             
        }
    }

 

Stefan Nenchev
Telerik team
 answered on 21 Nov 2017
4 answers
82 views

Hi 

I am using Point Labels with Line series.

I noticed that TKChartPaletteItem is not displaying for first point and last point. Please see the attached screen shot, first and last point does not have the star and circle palette.

I am already using the Chart Delegate, but unfortunately, I m not sure how to make them visible

 

Thanks

Ranga

Ranganathan
Top achievements
Rank 1
 answered on 21 Nov 2017
1 answer
121 views
I'm following the example code from the ListView Getting Started section. At the end of the example, it states "set the list view as content of your page". How is this done? I tried SetContentView(listView) but get an error stating "cannot convert from RadListView to View". Here's my activity code:

 

public class RouteDetailActivity : ListActivity
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
 
            var listView = new RadListView
            {
                ItemsSource = new ViewModel().Source,
                ItemTemplate = new DataTemplate(() =>
                {
                    var label = new Label {Margin = new Thickness(10)};
                    var content = new Grid();
                    content.Children.Add(label);
                    label.SetBinding(Label.TextProperty, new Binding(nameof(SourceItem.Name)));
 
                    return new ListViewTemplateCell
                    {
                        View = content
                    };
                })
            };
 
            SetContentView(listView);
        }
    }
Lance | Senior Manager Technical Support
Telerik team
 answered on 20 Nov 2017
1 answer
128 views

I am working on Calendar Event DayView in Xamarin UI for Android. As i try on everything on this for last 6 days. but nothing could help me.

As i am using trial version of calendar dll. But i am getting event is overlapping in my DayView of Calendar. See the below screenshot for output.

 

 

As I read the documentation this issue is resolve in June 2017. But I am keep getting this issue.

Do a fever if this issue to resolve. So that i can purchase the paid version..

 

Any help will be appreciated.

 

 

Stefan Nenchev
Telerik team
 answered on 20 Nov 2017
8 answers
309 views

hi,

Is there a way to change month or week by swiping left/right or up/down in android and Ios ?

thank you

Lance | Senior Manager Technical Support
Telerik team
 answered on 17 Nov 2017
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?