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

How to reset default properties?

$
0
0
SmartClient Version: v8.3p_2013-06-19/PowerEdition Deployment (built 2013-06-19)

In our application, the user can set the day of the week for the application (and the date chooser). When they do this, we execute code like this:

Code:

DateChooser chooser = new DateChooser();
chooser.setFirstDayOfWeek( value );
DateChooser.setDefaultProperties( chooser );

Which works fine. The problem comes if they change it again and we again call setDefaultProperties, the change does not take effect.

I expect this is because the underlying code calls $wnd.isc.DateChooser.addProperties(properties);, which doesn't sound like it overrides any existing default properties.

Is there a way that default properties can be reset or overridden?

Thanks!

Viewing all articles
Browse latest Browse all 4756

Trending Articles