ListView example

23 posts, 0 answers
  1. Joshua
    Joshua avatar
    2 posts
    Member since:
    Jun 2015

    Posted 30 Jun 2015 Link to this post

    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? 
  2. Joshua
    Joshua avatar
    2 posts
    Member since:
    Jun 2015

    Posted 30 Jun 2015 in reply to Joshua Link to this post

    Well, I feel dumb. The SDKBrowser is in the download, in the examples folder.
  3. DevCraft banner
  4. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 01 Jul 2015 Link to this post

    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
  5. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 02 Jul 2015 in reply to Nikolay Link to this post

    I couldn't get the SDK samples to compile on Android :-(
  6. Antony Jekov
    Admin
    Antony Jekov avatar
    88 posts

    Posted 03 Jul 2015 Link to this post

    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
  7. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 03 Jul 2015 in reply to Antony Jekov Link to this post

    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.

  8. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 08 Jul 2015 Link to this post

    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
  9. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 08 Jul 2015 in reply to Victor Link to this post

    I don't know Victor.

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

  10. Todor
    Admin
    Todor avatar
    778 posts

    Posted 13 Jul 2015 Link to this post

    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
  11. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 13 Jul 2015 in reply to Todor Link to this post

    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.

  12. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 13 Jul 2015 Link to this post

    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
  13. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 15 Jul 2015 in reply to Ves Link to this post

    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.

  14. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 17 Jul 2015 Link to this post

    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
  15. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 20 Jul 2015 in reply to Ves Link to this post

    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.

     

     

     

  16. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 23 Jul 2015 Link to this post

    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
  17. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 23 Jul 2015 in reply to Ves Link to this post

    Thanks Ves.

  18. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 23 Jul 2015 in reply to Ves Link to this post

    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.

     

  19. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 24 Jul 2015 Link to this post

    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
  20. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 27 Jul 2015 in reply to Ves Link to this post

    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.

  21. N Mackay
    N Mackay avatar
    228 posts
    Member since:
    Dec 2010

    Posted 27 Jul 2015 in reply to N Mackay Link to this post

    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.

     ​

     

  22. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 29 Jul 2015 Link to this post

    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
  23. Ujwala
    Ujwala avatar
    15 posts
    Member since:
    Apr 2014

    Posted 25 Sep 2015 Link to this post

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

     

  24. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 30 Sep 2015 Link to this post

    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
Back to Top
DevCraft banner