This is a migrated thread and some comments may be shown as answers.

ListView example

22 Answers 306 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 30 Jun 2015, 06:09 PM
I'm very interested in the new ListView. Where would I find an in depth example of how to use it? I already did the getting started example at http://docs.telerik.com/devtools/xamarin/controls/listview/listview-getting-started . However I would like to eventually go beyond just simple strings in each cell which is all the "getting started" example shows.  On the telerik xamarin blog Nikolay Diyanov mentioned an SDKBrowser example app that showcases various features of ListView. That sounds like exactly what I'm looking for. Does anyone know where I could find that? 

22 Answers, 1 is accepted

Sort by
0
Joshua
Top achievements
Rank 1
answered on 30 Jun 2015, 06:41 PM
Well, I feel dumb. The SDKBrowser is in the download, in the examples folder.
0
Nikolay
Telerik team
answered on 01 Jul 2015, 09:39 AM
Hey Joshua,

Indeed, just like you have found, the SDKBrowser sample app is shipped with the UI for Xamarin product. Feel free to share if you find the existing examples enough or what more you would expect to see as an implemented sample scenario. 

Regards,
Nikolay
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
N Mackay
Top achievements
Rank 1
answered on 02 Jul 2015, 11:23 AM
I couldn't get the SDK samples to compile on Android :-(
0
Antony Jekov
Telerik team
answered on 03 Jul 2015, 09:05 AM
Hello Norman,

Could you please share with us the error displayed when trying to compile the examples? It will be vital, if we are to better understand and fix this issue for you.

Thank you for your time and all best!

Regards,
Antony Jekov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
N Mackay
Top achievements
Rank 1
answered on 03 Jul 2015, 09:33 AM

Hi Antony,

Thanks, I saw your reply on the other thread.

http://www.telerik.com/forums/latest-release

If you want me to setup a ticket to track this I'm more than happy to do it, also happy to test builds etc.

Let me know if you want a ticket created.

Kind Regards,

Norman.

0
Victor
Telerik team
answered on 08 Jul 2015, 11:13 AM
Hi Norman,

We had forgotten to delete three references to drawer transition classes that no longer exist. The git hub repository has now been updated? Are the missing classes the compiler errors?

Regards,
Victor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
N Mackay
Top achievements
Rank 1
answered on 08 Jul 2015, 11:19 AM

I don't know Victor.

 Is there a newer build of the SDK browser I can try?

0
Todor
Telerik team
answered on 13 Jul 2015, 08:22 AM
Hi Norman,

You can take the latest version of the SDK examples anytime from out GitHub repository here. It contains SDK examples in Java (Sample-Java), in C# (Samples-Xamarin) and the code of our application available in the store (Store-Demo).

Let us know if the issue persists with the latest version of the examples.

Regards,
Todor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
N Mackay
Top achievements
Rank 1
answered on 13 Jul 2015, 08:28 AM

This isn't the same Xamarin forms sample I tried which ships with the Forms controls.

 Besides I have to wait for the next service release as I identified a bug in the chart control so it's pointless until then.

0
Ves
Telerik team
answered on 13 Jul 2015, 03:15 PM
Hi Norman,

The fix for the problem you reported is in place and it will be delivered with the next build. However, the Xamarin Forms SDKBrowser app builds just fine on our end, so we might need some additional details here. Basically, all you need to do is restore the nuget packages in the solution and build it. One thing you can check is the Android version used to compile the project -- please, make sure it is 21.

Best regards,
Ves
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
N Mackay
Top achievements
Rank 1
answered on 15 Jul 2015, 10:52 AM

Hi Ves,

 Sorry for the delay in replying, I had to package a release of a Forms app (with Chart control) for some senior managers, all worked fine in a signed APK so I know that will work fine.

 I feel like I'm hitting my head against a wall on this thread TBH, Todor seems to be referring to the native Android samples.

 The sample I refer to is the Xamarin Forms sample which installs to "C:\Program Files (x86)\Telerik\UI for Xamarin Q2 2015\Examples\XamarinForms"

The SDKBrowser.Android project doesn't compile. The API level is set to 21 as it was on the app I compiled to APK yesterday. My point was that that Xamarin Forms SDK sample will not compile. if you set the default project to Android. I think something has been lost in translation.

Kind Regards,

Norman.

0
Ves
Telerik team
answered on 17 Jul 2015, 12:11 PM
Hi Norman,

That's correct. Sorry about the misunderstanding. So, it seems the errors you see in SDKBrowser appear when using Xamarin.Android.Support.* packages version 22.x.x.x. Please, revert them to use 21.0.3.0 and you should be able to compile SDKBrowser.

Best regards,
Ves
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
N Mackay
Top achievements
Rank 1
answered on 20 Jul 2015, 09:11 AM

Hi Ves,

I shouldn't have updated the nuget packages but I wanted to test it against forms 1.4.3. If the Listview don't support Forms 1.4.3 I can't use it.

I'll probably wait for the next release.

Looking forward to better samples.

Thanks,

Norman.

 

 

 

0
Ves
Telerik team
answered on 23 Jul 2015, 11:57 AM
Hi Norman,

We have released a new build - version 2015.2.721. It covers all the requirements you have set:
 - Fixed the bug you have reported
 - Targets Xamarin Forms 1.4.3
 - Android projects can use the latest versions of Xamarin.Android.Support libraries

Let us know if further questions arise.

Regards,
Ves
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
N Mackay
Top achievements
Rank 1
answered on 23 Jul 2015, 01:02 PM

Thanks Ves.

0
N Mackay
Top achievements
Rank 1
answered on 23 Jul 2015, 01:47 PM

Hi Ves,

 I downloaded and tried the sample but it won't compile for iOS or Android.

 [assembly: Xamarin.Forms.ExportRenderer(typeof(Telerik.XamarinForms.Primitives.RadSideDrawer), typeof(Telerik.XamarinForms.PrimitivesRenderer.Android.SideDrawerRenderer))]

 Error2The type or namespace name 'Primitives' does not exist in the namespace 'Telerik.XamarinForms' (are you missing an assembly reference?)C:\Program Files (x86)\Telerik\UI for Xamarin Q2 2015\Examples\XamarinForms\SDKBrowser\SDKBrowser.Android\MainActivity.cs1069SDKBrowser.Android
Error3The type or namespace name 'PrimitivesRenderer' does not exist in the namespace 'Telerik.XamarinForms' (are you missing an assembly reference?)C:\Program Files (x86)\Telerik\UI for Xamarin Q2 2015\Examples\XamarinForms\SDKBrowser\SDKBrowser.Android\MainActivity.cs10124SDKBrowser.Android

All the references are okay and the Telerik.Xamarin.Android.Primitives.dll is in the correct location.

Kind Regards,

Norman.

 

0
Ves
Telerik team
answered on 24 Jul 2015, 01:23 PM
Hi Norman,

This is strange. We do not experience such issues in our tests and I just verified it builds just fine for me.  I am not sure what might be the reason for this. Maybe you can try to remove the problematic references and re-add them? Or copy the entire solution elsewhere and fix the references? The next step would be to uninstall the product completely and then re-install it. I am afraid it is hard to provide an advice in this case.

Best regards,
Ves
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
N Mackay
Top achievements
Rank 1
answered on 27 Jul 2015, 10:39 AM

Hi Ves,

 I uninstalled Xamarin Q1 & Q2, downloaded again and re-installed. After restoring nuget packages it runs fine on Android. I don't know if the issue was that Q1 was also installed. Not sure why that would be.

Anyway, got it working. Slidedrawer looks good. just need to test Chart again my solutions.

Tested on iOS as well, it does something weird in my Visual Studio, if you select iPhone instead of simulator my Visual Studio (2013-SP4 with Xamarin stable) goes into a loop and the compile button flips between Simulator and Hardware devices. It only ever happens on solutions from Telerik, not sure which build of Xamarin for Visual Studio you guys use, I'm on 3.11.666.0.

Kind Regards,

Norman.

0
N Mackay
Top achievements
Rank 1
answered on 27 Jul 2015, 01:36 PM

Hi Ves,

Just to let the team know, I tested the app with the latest chart and it's all working nicely in iOS :-)

I did encounter one issue when testing in Android, I got the following error:

Error   1   Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.v8.RenderScript, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Xamarin.Android.Support.v8.RenderScript.dll'
   at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
   at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
   at Xamarin.Android.Tasks.ResolveAssemblies.Execute() C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets   1146    2   VesselFinder.Droid

I got round it by installing the following Nuget package 

https://www.nuget.org/packages/Xamarin.Android.Support.v8.RenderScript/

Is this the correct workaround? I didn't have to do this for the previous version so is this something introduced in Q2 2015? If it's not in the documentation, it's worth adding as it's not mentioned.

http://docs.telerik.com/devtools/xamarin/controls/chart/chart-getting-started

Kind Regards,

Norman.

 ​

 

0
Ves
Telerik team
answered on 29 Jul 2015, 11:06 AM
Hi Norman,

This is actually the correct approach to the problem. Xamarin.Android.Support.v8.RenderScript is now required by Xamarin.Android.Primitives assembly, so you have found the correct solution. The documentation will be updated shortly. I am sorry for the inconvenience.

Best regards,
Ves
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Ujwala
Top achievements
Rank 1
answered on 25 Sep 2015, 01:59 PM

Hi all, can ​anyone tell me the expand and collapse feature of listview of xamarin form is available in telerik UI?

 

0
Ves
Telerik team
answered on 30 Sep 2015, 11:05 AM
Hi Ujwala,

I am afraid currently expand/collapse is not supported.

Best regards,
Ves
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Joshua
Top achievements
Rank 1
Answers by
Joshua
Top achievements
Rank 1
Nikolay
Telerik team
N Mackay
Top achievements
Rank 1
Antony Jekov
Telerik team
Victor
Telerik team
Todor
Telerik team
Ves
Telerik team
Ujwala
Top achievements
Rank 1
Share this question
or