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

Timeline setdataSource

1 Answer 68 Views
Timeline
This is a migrated thread and some comments may be shown as answers.
Nurbek
Top achievements
Rank 1
Nurbek asked on 09 Apr 2020, 01:48 PM

Hi!

I need to refresh datasource. But as I know from code setDataSource runs _redraw function. 

It renders only one date per page.

But it is not solution. Because when I manually run redraw with setTimeout, it shows what I expected. And shows 10 events per page.

Is it possible to fix it.

My manual code: 

      timeline.setDataSource(data);
        if (data.length > 0) {
            setTimeout(() => {
                timeline.redraw();
            });
        }

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 13 Apr 2020, 10:19 AM

Hello Nurbek,

In general, the Timeline renders as many dates on a single page as it can fit.

I just tested the Timeline widget by calling redraw() method and setDataSource() on it and the end result was the same and so I was not able to reproduce the described:

It will help me a lot to investigate further if you can replicate the issue in a Dojo environment. Examining this will help me fully understand the case and eventually I will be able to advise accordingly.

Looking forward to your reply.

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Timeline
Asked by
Nurbek
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or