Scrollable TKAlert

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    25 posts
    Member since:
    Jun 2016

    Posted 23 Jun Link to this post

    I want to use TKAlert to display a list of error messages. I am currently setting the frame for my TKAlert to a specific height and I want the TKAlert to be scrollable so that the user can scroll to see all of the error messages if there are more than the TKAlert can display in its height. How can I achieve this? Thanks in advance.
  2. Sophi
    Sophi avatar
    97 posts

    Posted 27 Jun Link to this post

    Hi Ryan,

    May I suggest a slightly different approach. 
    In order to display a list of error messages you should probably consider using a TKAlert with custom view which should be a TKListView.
    The TKListView is a complex UI Control used to list different types of data, it is based on UICollectionView so you are getting scrolling out of the box. You can check our SDK repo in github where you will find examples showing basic usage scenarios with our controls. Here is a link to example implementing TKAlert with custom view which is a TKCalendar but you will get an idea how things work. And of course here is the implementation of the custom alert view used for the example.

    In case you need any further assistance, let us know right away.

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