jahlxx Posted November 15, 2018 Posted November 15, 2018 Hi. I need to have a year view calendar. There is no standard component to do it, and have some options, but none of them covers my need. In the calendar I will have 2 kinds of days, and need to color the cells depending of the kind of day. For employees, will hace vacation days in one color, and hollydays is other color. Option 1: Put in a form 12 calendarpanels with month view, but have the problem that can't have different colors for every kind of days. Option 2: Put in a form 12 calendar, but I dont knot hot to hide the headers (where appears the arrows for change the month). I can only hide the today button. Option 3: Put 12 stringgrids, and bult every one with the days of one month. I know how to do this, but coloring the cells is a heavy process, because I have the calendars in database and ondrawcell procedure I think that is not the best way. Option 4: Use a year calendar in javascript and put in a htmlframe. The 3 first options are with standard components, and the option 4 not. I prefer to use standard components. Options 1 and 2, cloud be the best, but I don't know. I'm making tests with this options, but can't find the best and the easyest way to do it. That's all. I hope someone can clarify to me. Thanks. Quote
Sherzod Posted November 15, 2018 Posted November 15, 2018 1 hour ago, jahlxx said: Option 2: Put in a form 12 calendar, but I dont knot hot to hide the headers (where appears the arrows for change the month). I can only hide the today button. Hi, One possible solution 1. CustomCSS: .customDPicker .x-datepicker-header { display: none; } 2. function picker.beforeInit function picker.beforeInit(sender, config) { config.cls='customDPicker'; } Quote
jahlxx Posted November 15, 2018 Author Posted November 15, 2018 Ok. thanks. I'm almost where I want, using stringgrid, but I miss cellclick event, and/or capture row and col un stringgridclick, How can I do? Thanks. Quote
Sherzod Posted November 15, 2018 Posted November 15, 2018 3 minutes ago, jahlxx said: I'm almost where I want, using stringgrid, but I miss cellclick event, and/or capture row and col un stringgridclick, How can I do? UniStringGrid -> OnSelectCell event ? Quote
jahlxx Posted November 15, 2018 Author Posted November 15, 2018 well, finally I've done with some stringgrids. I don't know if it is the est way to do it, but right now ins enough for me. thanks for all, and hope that in the future, calendarpanel will have year view. looks like the image: 2 Quote
zemorango Posted November 15, 2018 Posted November 15, 2018 13 minutes ago, jahlxx said: well, finally I've done with some stringgrids. I don't know if it is the est way to do it, but right now ins enough for me. thanks for all, and hope that in the future, calendarpanel will have year view. looks like the image: Jahlxx Very nice result , can you please share a small project with your aproach? Quote
jahlxx Posted November 15, 2018 Author Posted November 15, 2018 Sure, Attached is the unit. Any enhancement will be wellcome. calendar.zip 1 Quote
zemorango Posted November 15, 2018 Posted November 15, 2018 10 minutes ago, jahlxx said: Sure, Attached is the unit. Any enhancement will be wellcome. calendar.zip Thank you so mush Jahlxx Quote
rpsoft Posted June 8, 2019 Posted June 8, 2019 Very good, could you upload the sample file again? Thank you Quote
cleriston Posted October 12, 2019 Posted October 12, 2019 I can't download the sample source ... can make it available again or send by email crbmartins@gmail.com Quote
Sherzod Posted October 12, 2019 Posted October 12, 2019 3 minutes ago, cleriston said: I can't download the sample source ... can make it available again or send by email crbmartins@gmail.com Which edition of UniGUI are you using? 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.