chrisjohn82 Posted June 21, 2016 Share Posted June 21, 2016 Hi everybody, I'm trying to change the range for the Year in the mobile datetimepicker but i can't get it to work, i tried to change the minYear and maxYear property but the maxYear is always 2016? Best Regards Christian Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 22, 2016 Share Posted June 22, 2016 Hi, Which version are you using?! I'm trying to change the range for the Year in the mobile datetimepicker but i can't get it to work, i tried to change the minYear and maxYear property but the maxYear is always 2016? In DesignTime or RunTime ?! Best regards. Quote Link to comment Share on other sites More sharing options...
chrisjohn82 Posted June 22, 2016 Author Share Posted June 22, 2016 I'm using version 0.99.95.1301 and it's in runtime still showing maxYear = 2016. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 22, 2016 Share Posted June 22, 2016 For now try: procedure TMainmForm.UnimButton1Click(Sender: TObject); begin //yearFrom - MinYear, //yearTo - MaxYear.. UniSession.AddJS('setTimeout(function(){' + UnimDatePicker1.JSName + '.setPicker({yearFrom: 2000, yearTo: 2030})}, 50);'); end; Best regards. Quote Link to comment Share on other sites More sharing options...
chrisjohn82 Posted June 22, 2016 Author Share Posted June 22, 2016 Thank you, works great . I saw that there is a new build 99.95.1308. It might work better with the new build.... Best regards Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.