Jump to content

Recommended Posts

Posted

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

Posted

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.

  • Upvote 1
Posted

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!

  • 6 years later...
Posted

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

Posted
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
}

 

Posted
28 minutes ago, Sherzod said:

function painted(sender, eOpts)
{
    sender.setView('day'); //week, month
}

 

function beforeInit(sender, config)
{
    config.defaultView = 'day'; //week, month
}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...