Listview containing charts

3 posts, 1 answers
  1. Cedric
    Cedric avatar
    64 posts
    Member since:
    Oct 2010

    Posted 12 Aug 2014 Link to this post

    Hi,

    I've a listview containing several bar charts and if the number of items is enough to make a scrollbar appear, the first chart are longer than the following.
    It 's seems the charts are not redrawn when the scrollbar appear/disappear.

    A sample can be viewed here : Charts in listview

    Thanks

    - Ced -
  2. Answer
    T. Tsonev
    Admin
    T. Tsonev avatar
    2772 posts

    Posted 14 Aug 2014 Link to this post

    Hi,

    We can trigger a resize after the charts have been rendered. There's no suitable event so we'll have to resort to setTimeout:
        bound: function(e) {
          var listViewElement = e.sender.element;
          setTimeout(function() {
            kendo.resize(listViewElement);
          });
        }

    -- Live demo --

    I hope this helps.

    Regards,
    T. Tsonev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Cedric
    Cedric avatar
    64 posts
    Member since:
    Oct 2010

    Posted 14 Aug 2014 in reply to T. Tsonev Link to this post

    That made the job.
    Thanks

    - Ced -
Back to Top