codeb Posted February 7, 2015 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
Sherzod Posted February 7, 2015 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
codeb Posted February 7, 2015 Author 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
likemike Posted September 4, 2021 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
Sherzod Posted September 4, 2021 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
Sherzod Posted September 4, 2021 Posted September 4, 2021 Just now, likemike said: Sorry, but that has no effect... Yes. I will check. Quote
Sherzod Posted September 4, 2021 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
likemike Posted September 4, 2021 Posted September 4, 2021 That works, but must be put in "UniCalendarPanel -> ClientEvents -> UniEvents -> beforeInit" Quote
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.