Listview sample doesn't work

Thread is closed for posting
4 posts, 0 answers
  1. Matt
    Matt avatar
    2 posts
    Member since:
    Aug 2015

    Posted 19 Feb Link to this post

    Trial user a little concerned at how broken the documentation is:

    Tried Swift first:

    // allocate an array of strings:

    let sampleArrayOfStrings = ["Kristina Wolfe","Freda Curtis","Jeffery Francis","Eva Lawson","Emmett Santos", "Theresa Bryan", "Jenny Fuller", "Terrell Norris", "Eric Wheeler", "Julius Clayton", "Alfredo Thornton", "Roberto Romero","Orlando Mathis","Eduardo Thomas","Harry Douglas"]

     

    // then create a datasource -- without using the array??

    let dataSource = TKDataSource()

     

    Okay, clearly nobody has tested this sample code as that doesn't pass a basic sniff test. I enter the rest of the code as shown and am unsurprised that it produces an empty screen rather than the pictured listview

     

    So I then switch over to the less-desirable objective-C version:

    // let's initialize an undeclared variable!

    _sampleArrayOfStrings =@[@"Kristina Wolfe",@"Freda Curtis",@"Jeffery Francis",@"Eva Lawson",@"Emmett Santos", @"Theresa Bryan", @"Jenny Fuller", @"Terrell Norris", @"Eric Wheeler", @"Julius Clayton", @"Alfredo Thornton", @"Roberto Romero",@"Orlando Mathis",@"Eduardo Thomas",@"Harry Douglas"];

    // and another! (although at least it uses the array)

    _dataSource = [[TKDataSource alloc] initWithArray:_sampleArrayOfStrings];

     

    These fixes are relatively straightforward but once again putting in the rest of the code does not result in a visible listview

    Can anyone speak to:

    - is there a listview sample that works?

    - is this an actively developed product? a little surprised to see such obviously broken startup instructions

  2. Deyan
    Admin
    Deyan avatar
    2147 posts

    Posted 22 Feb Link to this post

    Hello Matt,

    Thanks for writing and for the valuable feedback!

    We are going to review the source of the examples and address the issues that you are pointing out as soon as possible.

    Did you manage to get started with TKListView despite the issues or you need more assistance from us?

    Thanks again and please accept our apologizes for the rough getting started experience.

    Regards,
    Deyan
    Telerik by Progress
    Want to build beautiful Android apps as well? Check out UI for Android which enables the same set of scenarios, allowing you to create the same great app experience on both iOS and Android.
  3. Matt
    Matt avatar
    2 posts
    Member since:
    Aug 2015

    Posted 22 Feb in reply to Deyan Link to this post

    Thanks Deyan;

    I was able to move forward by examining the source code in the provide xcode project - thank you!

    It did take a while to isolate the listview sample, but it was educational.

    The samples are fine, I would guess that when they got cut-and-pasted into the tutorial documentation there were some errors.

    Pretty impressed so far. 

  4. Deyan
    Admin
    Deyan avatar
    2147 posts

    Posted 23 Feb Link to this post

    Hello Matt,

    Thanks for writing back.

    Good to hear that you are progressing well - let us know in case of any questions.

    The Source samples are automatically injected into the documentation from sample projects that we keep healthy, i.e. make sure they build correctly. This one somehow slipped under our radar but we're going to review it.

    I will consider this thread closed for now and thanks for your feedback!

    Regards,
    Deyan
    Telerik by Progress
    Want to build beautiful Android apps as well? Check out UI for Android which enables the same set of scenarios, allowing you to create the same great app experience on both iOS and Android.
Back to Top