This is a migrated thread and some comments may be shown as answers.

Listview containing charts

2 Answers 84 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Cedric
Top achievements
Rank 1
Cedric asked on 12 Aug 2014, 07:34 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 14 Aug 2014, 07:08 AM
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!
 
0
Cedric
Top achievements
Rank 1
answered on 14 Aug 2014, 07:36 AM
That made the job.
Thanks

- Ced -
Tags
ListView
Asked by
Cedric
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Cedric
Top achievements
Rank 1
Share this question
or