nativescript-ui-feedback
nativescript-ui-feedback copied to clipboard
Calendar: DayView - property to control the scroll
Feature request: Add a property that controls the scroll in the day view area. For example - timeAtTop which will change while the view is scrolling and will also allow a specific time to be set so that the view is automatically scrolled to the desired time. Such property will also allow preservation of the scroll position when the current day is changed or when the events source is changed which currently is not possible.
Requested by @shabib3 here.
Ok so the thing is that I want to create a DayView calendar which will allow users to create events straight from the calendar view. While I implemented it I noticed that I can't just add events to the eventsSource array, because the angular doesn't rendering it... So I decided to just create the all array from scratch every time I need to add a new event, and this is working fine, the rendering is works... But the thing is that there is that behaviour of the calendar to scroll all the way up when I create the eventsSource from scratch, that in my opinion is a wrong behaviour... (this is a video of the issue in my app -> DayView calendar scroll bug nativescript-pro-ui)
So there is few options here:
- I don't know how to add and remove event correctly...So I need you to teach me how to do it...lol :)
- Change the default behaviour to be that no matter what the calendar stays in the same Y position
- Make that timeAtTop feature, that going to be a set and get function so that I can get and set the same position value...
No matter what will be the chosen option I think that timeAtTop feature is really great!!! :)
I am here for any question! :)
Thanks a lot!!!
Currently the day view starts with midnight, as such most events are not visible without scrolling. I would like to see this timeAtTop feature as well. Thanks
Just in addition, it would be very great to have both getTimeAtTop and setTimeAtTop! :) Maybe just a public property that we can get and set it :)
And for my opinion we should set the property with Date
type object.
for example:
calendar.timeAtTop = new Date(2018, 0 ,9, 10, 0, 0);
console.log(`${calendar.timeAtTop.toDateString()} ${calendar.timeAtTop.toLocaleTimeString()}`); // "Tue Jan 09 2018 10:00:00 AM"
// scroll down a bit
console.log(`${calendar.timeAtTop.toDateString()} ${calendar.timeAtTop.toLocaleTimeString()}`); // "Tue Jan 09 2018 13:00:00 AM"
I'd like to have access this property timeAtTop as well.
The RadCalendar is a great start for an Agenda like app but things get SO FRUSTRATING when we hit these limitations.
Things would be so much better if the Pro Ui components where open-source.
I can only recommend maybe implement the logic into goToDate
function but specially to the Day view mode. :)
little update about my opinion one comment up:
There is still need in getting the timeAtTop
.
The suggestions of goToDate
is just for additional that came to me...
Thanks! :)
It's an important feature, the dayView is kind of unusable right now... On the same matter, it should also be possible to limit the dayView to a specific range (ex: business hours).
What about this issue? Do you know about another calendar plugin with this feature?
This is pretty much a deal breaker using the DayView. Any update on getting this in?
+1 I do not understand who will use DayView mode w/o the ability to manipulate the scroll. I see the Xamarin control already has ScrollToTime
and ScrollToEvent
methods, so similar ones should be added here!
Could someone please suggest an alternative to such an appeal? access for example the RadCalendar applet? How can this programmed?
Or would they indicate another plugin that has this feature?
Any progress on this? I'm developing an app which could use this functionality - and as it is now the user experience is quite bad :(
Some news on this ? Such a shame that it shows from midnight and we can't do anything about it ..
I would like to show my calendar on hour of the phone on loaded..
i have the same situation when dayview appear it show midnight startHours, did someone find a solution or workaround?
Still nothing?