Jump to content

Recommended Posts

Posted

I'll try to do what I'm looking for in other way, using calendarpanel instead of calendar (as in a prior topic).

 

Changing unicalendar to unicalendar panel I think it could be more easy for me.

 

But I have the same questions:

 

- How can I highlight a day in a calendar panel where exists events?

 

- How can hide the elements red-boxed in the attached image? (this is not important at all) (are the days of the prior and next month)

 

- How can I get better the aspect ob the elements black-boxed attached image?

 

 

 

 

Thanks.

 

post-4123-0-62224600-1481717240_thumb.jpg

Posted

Hi.

 

And other question.

 

When click in an event, a popup windows appears, showing event info. Can I deactivate this behaviour?

 

Could be better for me, in an event click, do the same as in dayclick.

 

Thanks.

Posted

I've found this, for the 3rd questions in my first entry of this topic.

 

function beforeInit(sender, config)
{
  config.monthViewCfg = {
    showHeader: true,
  }
}

 

but with this, the first day of week is allways sunday. I've the firstdayofweek property of the calendar set to monday, but with this piece of code, allways is set to sunday.

 

I don't know why.

Posted

ok. works.

 

to have what I need, "only" need this:

 

- highlight a day in a calendar panel where exists events?

 

- When click in an event, a popup windows appears, showing event info. Can I deactivate this behaviour? Could be better for me, in an event click, do the same as in dayclick

 

thanks.

Posted

- When click in an event, a popup windows appears, showing event info. Can I deactivate this behaviour? Could be better for me, in an event click, do the same as in dayclick

 

Can you clarify ?

Posted

yes, only month view.

 

I don't want a popup message window when click in an event. I'd like eventclick do nothing or do the same effect that dayclick. You can see in the image attached what appears when event click (is a sample)

post-4123-0-72153800-1481807037_thumb.png

Posted

I don't want a popup message window when click in an event. I'd like eventclick do nothing or do the same effect that dayclick.

 

Maybe you wanted like this ?!:

procedure TMainForm.UniCalendarPanel1EventClick(Sender: TUniCalendarPanel;
  AEventId: Integer; AEvent: TUniCalendarEvent);
begin
  {if not EventEditForm.Visible then
  begin
    EventEditForm.Calenedar:=UniCalendarPanel1;
    EventEditForm.SetEvent(AEvent);
    EventEditForm.ShowModal;
  end;}
end;
Posted

Not exactly.

 

As I can see, my "problems" are due to the size of the calendar panel. If the size of the panel is height and width enouh, the events appears colored and don¡t show window on event click (you can see in attached image).

 

Has any solution?

post-4123-0-78202800-1481808241_thumb.png

Posted

I don't want a popup message window when click in an event.

 

Try this:

function beforeInit(sender, config)
{
  config.monthViewCfg = {
    showHeader: true,
    startDay: 1,
    onMoreClick: Ext.emptyFn
  }
}
  • 4 months later...

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...