jahlxx Posted December 14, 2016 Posted December 14, 2016 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. Quote
jahlxx Posted December 14, 2016 Author Posted December 14, 2016 With these I think that I can have something similar to year view. Quote
jahlxx Posted December 15, 2016 Author Posted December 15, 2016 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. Quote
jahlxx Posted December 15, 2016 Author Posted December 15, 2016 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. Quote
Sherzod Posted December 15, 2016 Posted December 15, 2016 function beforeInit(sender, config) { config.monthViewCfg = { showHeader: true, startDay: 1 } } Quote
jahlxx Posted December 15, 2016 Author Posted December 15, 2016 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. Quote
Sherzod Posted December 15, 2016 Posted December 15, 2016 - highlight a day in a calendar panel where exists events? Are you using only "MonthView" ?! Quote
Sherzod Posted December 15, 2016 Posted December 15, 2016 - 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 ? Quote
jahlxx Posted December 15, 2016 Author Posted December 15, 2016 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) Quote
Sherzod Posted December 15, 2016 Posted December 15, 2016 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; Quote
jahlxx Posted December 15, 2016 Author Posted December 15, 2016 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? Quote
Sherzod Posted December 15, 2016 Posted December 15, 2016 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 } } Quote
jahlxx Posted April 19, 2017 Author Posted April 19, 2017 Hi. Is possible to have year view in calendar panel? Thanks. 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.