codeb Posted February 7, 2015 Share Posted February 7, 2015 Hello, I have one question about setting up UniCalendarPanel to see WeekView events when start application?(by default is on MonthView ). How I do that? Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 7, 2015 Share Posted February 7, 2015 Hi,One of the ways, try:UniCalendarPanel1 -> ClientEvents -> ExtEvents -> add function afterrender function afterrender(sender, eOpts) { // 0 - Day // 1 - Week // 2 - Month sender.setActiveView(1); } Best regards. 1 Quote Link to comment Share on other sites More sharing options...
codeb Posted February 7, 2015 Author Share Posted February 7, 2015 Thanks for answer I have new question about component. How to change format time from AM-PM to 24 hour format and how to limit time on DayView scheduler like from 7:00 to 18:00. Thanks! Quote Link to comment Share on other sites More sharing options...
likemike Posted September 4, 2021 Share Posted September 4, 2021 Hello! This doesn't work with UnimCalendarPanel (I've tried it with ExtEvents->painted, ExtEvents->beforshow and ExtEvents->show because there is no function "afterrender"). Is there a solution for the mobile version? Thanks Mike Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 4, 2021 Share Posted September 4, 2021 11 minutes ago, likemike said: This doesn't work with UnimCalendarPanel (I've tried it with ExtEvents->painted, ExtEvents->beforshow and ExtEvents->show because there is no function "afterrender"). Is there a solution for the mobile version? Hello, function painted(sender, eOpts) { sender.setView('day'); //week, month } Quote Link to comment Share on other sites More sharing options...
likemike Posted September 4, 2021 Share Posted September 4, 2021 Sorry, but that has no effect... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 4, 2021 Share Posted September 4, 2021 Just now, likemike said: Sorry, but that has no effect... Yes. I will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 4, 2021 Share Posted September 4, 2021 28 minutes ago, Sherzod said: function painted(sender, eOpts) { sender.setView('day'); //week, month } function beforeInit(sender, config) { config.defaultView = 'day'; //week, month } Quote Link to comment Share on other sites More sharing options...
likemike Posted September 4, 2021 Share Posted September 4, 2021 That works, but must be put in "UniCalendarPanel -> ClientEvents -> UniEvents -> beforeInit" 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.