How to add TKChartDelegate on UITableViewCell

Thread is closed for posting
3 posts, 1 answers
  1. Koldo
    Koldo avatar
    9 posts
    Member since:
    Feb 2016

    Posted 11 Apr 2016 Link to this post


    In my telerik app, the charts are showed in a tableview (the TKChart is on a custom UItableViewCell class), and I need to access to data point event with TKChartDelegate.

    My problem is to access TKChartDelegate methods, because I can not put these methods on my custom UITableViewCell class.


    Any solution please?


  2. Answer
    Sophi avatar
    103 posts

    Posted 14 Apr 2016 Link to this post

    Hi Koldo,

    From what I understand each cell of your ListView contains a TKChart. You can conform to the TKChartDelegate protocol in your custom cell class and then set the cell as a delegate to the chart.
    Consider the following snippet.
    @interface CustomListCell : UITableViewCell<TKChartDelegate>
    @implementation CustomListCell
       TKChart *chart = [[TKChart alloc] init];
       chart.delegate = self;
     ...implement delegate methods
    In case this does not work out, do not hesitate to write back.

    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. Koldo
    Koldo avatar
    9 posts
    Member since:
    Feb 2016

    Posted 14 Apr 2016 in reply to Sophi Link to this post



    Thank you :)

Back to Top