Syncfusion Calendar Schedule View Set Scroll Position at Start - flutter

I am trying to set the initial scroll position as I have a floating search bar that will sit above my calendar.
Here is what it looks like on load as you can see the initial date is hidden:
Here is what I want it to look like on start as you can see the initial date is just below my floating search bar:
Anyone know how I can achieve this? Setting the initial start date 1/2 days behind is not an option as the height will vary based on the number of events in those days.

As per the current implementation of the calendar, there is no support to change the initial scroll position. The calendar will be positioned as the initial date view based on the initial display date value or controller display date value.
Please refer to the following UG link for more information.
https://help.syncfusion.com/flutter/calendar/getting-started#initial-display-date
https://help.syncfusion.com/flutter/calendar/date-navigations#programmatically-change-to-adjacent-dates

Related

Accessing object that is below a floating object

Link to original post
Here is what I am facing.
I am using the 'sheet selector' technique to switch between two sheets and the sheet selector parameter is the 'PY' and 'Date Range' option.
I also want to hide the corresponding filters along with the sheets.
When I pick PY - the checkboxes will be displayed.
When I pick date range Rebate Commit Date will be displayed.
I was able to successfully hide PY option by setting it to 'Only relevant values'.
However that is not working for date range
So I used a floating object in a vertical container to hide the date range.
It is hiding successfully but when I need to access date range am not able to do that because of the floating object on top.
Any ideas are highly appreciated.
Thank you.
Answered in tableau community - Link

Setting the Count Down Timer in Swift 3

I'm using Date Picker, which is set to Count Down Timer mode. By default it displays the current time. How would I set it to display a specific time on start up? Thanks in advance.
You can use date property
UIDatePicker > date
Use this property to get and set the currently selected date

Set UIDatePicker text color for dates outside of date range swift

I am playing with a UIDatePicker in my project and I have decided to change the text color to white with
self.datePicker.setValue(UIColor.white, forKey: "textColor")
I also have a minimum date set to today's date. The issue I am having is that the date and time text outside of my minimum date is still grey making it hard to see on my screen. I have been browsing the documentation and am not able to find a list of what key value pairs are available to the class in order to fix this. Thanks.

how to get date in increment/decrement order in iphone

IN my app i have label at middle position and its left & right position previous and next button occur. label shows current date. & whenever i clicked on next button its shows date incremented by one and vice-versa in case of previous button. how to achieve this......
#sugita on the IBAction method of your previous button decrease the incremented date by 1 (i.e -1 for the incremented date),on every click of your previous button decrease the incremented date which u are giving to the label.It is like wise u r increasing it
Hope u understand!

Erratic UIPageControls

I'm using two UIPageControls in a view to reflect chapters and pages. So I have defined one UIPageControl named chapterCount and one named pageCount just to show where the user is. I handle the flipping of the pages with swipes rather than using the UIPageControls (so no methods defined for them).
I change their values as the user change pages with the following code:
chapterCount.numberOfPages = chapters;
chapterCount.currentPage = chapterNumber;
pageCount.numberOfPages = pages;
pageCount.currentPage = pageNumber;
[chapterCount updateCurrentPageDisplay];
[pageCount updateCurrentPageDisplay];
Where chapters, chapterNumber, pages and pageNumber all are integers.
The first time I flip through the pages it normally works fine, but when I go to a previous chapter or start a new chapter, the first (or last depending on direction) dot is not showed. Please see picture (upper half is missing a dot, lower one OK).
alt text http://img80.imageshack.us/img80/3339/pagecontrol.png
Its the same code updating the controls and sometime I get a dot, sometimes not. When I check the variables with NSLOG they are correct (eg the same for both pictures above).
I have checked Apple's documentation and tried their example but no luck.
Where should I start troubleshooting? I'm getting crazy!!
I finally found the problem :-)
An UIPageControl that is given a value 0 for number of pages will not show correctly the next time it is updated. I was reading chapter and page numbers from an array and in the beginning (let's say cover of the book) there are no pages and no chapters to show, so I happily set these to 0. Since I did not want to change the source data in my array I used MAX(pages , 1) for numberOfPages, so now it's working like clockwork.
Are you sure your chapterCount and pageCount views are not nil? You can have valid values all day, a message to nil does nothing and returns nil. Double check your view and controller wiring/unwiring when you change chapters.
EDIT:
confirm the size of the control is big enough to hold all your pages, and the view bounds is not clipped. For example, if you had 10 pages, and the "current" page was 10, but there were only 9 dots visible, it would appear as though nothing is highlighted because the white dot would be clipped from the visible area by being outside the viewable bounds. You can adjust the size dynamically using this:
- (CGSize)sizeForNumberOfPages:(NSInteger)pageCount