Hello, dear smartgwt developers!
I've found MiniDateRangeItem control very convenient, but unfortunately it doesn't fire Changed event...
Here is the info you requested:
1. SmartGWT 2.2 + IE 8 and Mozilla Firefox 3.6.12
3. for a client-side problem, the contents of the Developer Console:
4. if there is a JavaScript error, the stack trace logged in the Developer Console (from Internet Explorer if possible);
5. sample code:
There is no messages I recieve when I change value of the control from the web-page. Also the debugger doesn't enter method onChanged().
The interesting thing is that if I add this:
this type of handler perfectly works.
Please help me, I need ChangedHandler to work.
Thank you very much in advance!
I've found MiniDateRangeItem control very convenient, but unfortunately it doesn't fire Changed event...
Here is the info you requested:
1. SmartGWT 2.2 + IE 8 and Mozilla Firefox 3.6.12
3. for a client-side problem, the contents of the Developer Console:
Code:
00:03:44.272 [INFO] [recondashboard] Module recondashboard has been loaded
Code:
Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C) Timestamp: Fri, 19 Nov 2010 22:04:10 UTC Message: 'isc' is undefined Line: 7 Char: 1 Code: 0 URI: http://127.0.0.1:8888/recondashboard/sc/skins/SilverWave/load_skin.js
Code:
TabSet mainTabs = new TabSet();
mainTabs.setWidth(600);
mainTabs.setHeight(800);
Tab summaryTab = new Tab("Summary");
VLayout summaryTabVL = new VLayout();
DynamicForm dateForm = new DynamicForm();
dateForm.setWidth(450);
dateForm.setIsGroup(false);
MiniDateRangeItem dateRangeItem = new MiniDateRangeItem("mdri", "Date Range");
dateForm.setItems(dateRangeItem);
dateRangeItem.addChangedHandler(new ChangedHandler()
{
@Override
public void onChanged(ChangedEvent event)
{
SC.warn("Changed!");
}
});
summaryTabVL.addMember(dateForm);
summaryTab.setPane(summaryTabVL);
mainTabs.setTabs(summaryTab);
mainVL.addMember(mainTabs);
mainVL.setMargin(5);
mainVL.setWidth100();
mainVL.setHeight100();
mainVL.draw();
The interesting thing is that if I add this:
Code:
dateRangeItem.addClickHandler(new ClickHandler()
{
@Override
public void onClick(ClickEvent event)
{
SC.warn("Click");
}
});
Please help me, I need ChangedHandler to work.
Thank you very much in advance!
Comment