Scheduler not displaying in backbone template

Hello everyone,

I have to write a demo application for the company i’m working for.
We integrate the Scheduler in Timeline View in a Backbone Application.
I ran into a strange behavior. After initialisation there is only the date header of the timeline visible, but the timeline itself is not rendering (but the divs are created). If i change the window size the timeline renders fine.
Same issue in all Browsers.

In a HTML template i inserted the div.

[code]



zurück

vor







[/code]

in the render function of the backbone model i initialize the scheduler:

[code]render: function (isSubView) {
$(this.el).html(this.template());

    scheduler.config.details_on_create = true;
    scheduler.config.details_on_dblclick = true;
    scheduler.config.xml_date = "%Y-%m-%d %H:%i";
    var container = $(that.el).find('#timeline')[0];

   scheduler.createTimelineView({ .... my config .... });
   scheduler.init(container, new Date(2009, 5, 30), "timeline");
   scheduler.parse( ... my Data ... );

}[/code]

Has someone a idea what i’m doing wrong?
I also tried to use scheduler.updateView() after the render function.




Hi,
can you please send a small demo that I could run it locally, or give an online link, so i could check the issue?

Hello Aliaksandr,

i’m sorry, but i can’t send you a demo application.

But i have glad news. I fixed the Error. It’s a template problem of backbone.
I just modified the template a little bit, so that the function, scheduler.updateView() is called after loading the template.

[code]



zurück

vor







[/code]

Maybe someone will help this helpful