Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Cannot set CloseButton in timeline events

$
0
0
Hello,
I am using SmartGWT EE 4.1 (console says "SmartClient Version: v9.1p_2014-08-23/EVAL Deployment").
I need to show Close button in Timeline events.
When I set properties window, as described here (http://forums.smartclient.com/showthread.php?t=29095), i cannot see any result.
Here is my code:

Code:

timeline = new Timeline();
        timeline.setDataSource(dataSource_tasks);
        timeline.setHeight("200px");
        timeline.setShowResizeBar(true);
        timeline.setContextMenu(menu);
       
        com.smartgwt.client.widgets.calendar.EventWindow properties = new com.smartgwt.client.widgets.calendar.EventWindow();
        properties.setShowCloseButton(true);
        properties.setShowHeader(true);
       
        timeline.setAutoChildProperties("eventWindow", properties);

Where is the problem?

Attached Images
File Type: png snapshot.PNG (8.6 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles