OnAppearing/OnDisappearing not called for ListViewTemplateCell

6 posts, 0 answers
  1. Sascha
    Sascha avatar
    13 posts
    Member since:
    Jan 2017

    Posted 28 Jan Link to this post

    Hello,

    I derived my class from ListViewTemplateCell and tried to overwrite OnAppearing/OnDisappearing to be notified when an item is actually visible.

    But those callbacks are never hit. I also tried the Appearing-EventHandler, but this is not called either.

    Seems like a bug?

  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1225 posts

    Posted 01 Feb Link to this post

    Hi,

    Could you please share with us your exact setup? How is your custom cell used and created? Is it visualized on the screen?

    We are looking forward to hearing from you.

    Regards,
    Pavel R. Pavlov
    Telerik by Progress
    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
  3. Sascha
    Sascha avatar
    13 posts
    Member since:
    Jan 2017

    Posted 01 Feb Link to this post

    Hi Pavel,

     

    thanks for getting back to me.

    Well, i pushed an example on github: https://github.com/esskar/TelerikListViewPoc

    It should demonstrate all problems i have with the list view on iOS. Please find the class BookListCell, it overwrite the OnAppearing/OnDisappearing functions, but they are never called.

     

    Thanks.

    Sascha

     

     

  4. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1225 posts

    Posted 06 Feb Link to this post

    Hello Sasha,

    Thank you for providing us with repro project. Indeed the events are not triggered. This behavior is already logged in our backlog system. This means it will be reevaluated and fixed in our future releases. Till then users are able to be notified when a cell is visualized using a different mechanism.

    Users are allowed to create custom DataSource. In iOS the DataSource is responsible for managing the cells. For example you can override the InitCell() method and get the index of the item being visualized.

    You can take a look at the attached project to get a better knowledge.

    I hope this information helps. Let us know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik by Progress
    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. Sascha
    Sascha avatar
    13 posts
    Member since:
    Jan 2017

    Posted 07 Feb in reply to Pavel R. Pavlov Link to this post

    This makes no sense, as i never get a notification when disappears.
  6. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1225 posts

    Posted 13 Feb Link to this post

    Hello Sascha,

    Indeed, this approach will notify you when the cell disappears. We have already logged an item in our backlog system to reiterate over the cells. We will definitely improve their implementation in our future releases.

    Regards,
    Pavel R. Pavlov
    Telerik by Progress
    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