-
Notifications
You must be signed in to change notification settings - Fork 31
996026 - UG Documentation for the Special Date Predicate On Demand on SfCalendar #3831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INQUEUE 🕒 |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
MAUI/Calendar/customizations.md
Outdated
| >**NOTE** | ||
| * The Background color and text style will be applied based on the following order: selectableDayPredicate dates, special dates, disable dates, today date, weekend dates, trailingLeading dates, and normal dates. | ||
|
|
||
| * **UpdateSpecialDayPredicate** - The UpdateSpecialDayPredicate feature allows the `SfCalendar` to dynamically update special dates after new data is fetched. You can explicitly trigger a refresh to re-invoke the [SpecialDayPredicate](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Calendar.CalendarMonthView.html#Syncfusion_Maui_Calendar_CalendarMonthView_SpecialDayPredicate), ensuring that visual indicators such as icons, text styles, and backgrounds reflect the latest metadata only after the update. The new [UpdateSpecialDayPredicate]https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Calendar.CalendarMonthView.html#Syncfusion_Maui_Calendar_UpdateSpecialDayPredicate) provides a direct way to force this re-evaluation, guaranteeing that special-day indicators display the most recent data after a refresh. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The UpdateSpecialDayPredicate feature allows the SfCalendar to dynamically update special dates after new data is fetched. You can explicitly trigger a refresh to re invoke the https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Calendar.CalendarMonthView.html#Syncfusion_Maui_Calendar_CalendarMonthView_SpecialDayPredicate, ensuring that visual indicators such as icons, text styles, and backgrounds reflect the latest metadata only after the update. The new https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Calendar.CalendarMonthView.html#Syncfusion_Maui_Calendar_UpdateSpecialDayPredicate method provides a direct way to force this reevaluation, guaranteeing that specialday indicators display the most recent data after a refresh.
@AravindSubramaniyan use this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok Sir Removed the unwanted ifen sir
|
Build Status: INPROGRESS 🔃 |
|
CI Status: FAILURE ❌ |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
Feature description
UG Documentation for the Special Date Predicate On Demand on SfCalendar
Purpose/benefits of the feature
The feature allows applications to fetch special-day metadata asynchronously and explicitly trigger re-evaluation of SpecialDayPredicate so that visual indicators update only after new data is available.
Use cases
The feature is an additive enhancement to SfCalendar that introduces an explicit refresh pipeline for re-computing date decorations based on SpecialDayPredicate.
It integrates with existing rendering and theming and does not alter the visual tree or default predicate behavior.
What problem it solves?
This enhancement extends the existing SfCalendar by introducing an explicit refresh mechanism that re-invokes the SpecialDayPredicate across currently realized calendar cells after data fetch completion.
Analysis and design
Provided a public API (e.g., RefreshSpecialDayPredicate()) on SfCalendar to request re-evaluation of SpecialDayPredicate for the visible date range. The API schedules a safe UI-thread invalidation and re-computation of decorators without changing the visual tree.The API is idempotent: multiple invocations without data changes should not cause flicker or redundant work.
Solution description
• RefreshSpecialDayPredicate() sets a refresh, schedules layout on the UI thread, and recomputes cell decorators using current
SpecialDayPredicate. Visual tree unchanged; only predicate invocation timing and invalidation pipeline updated.• Prevents evaluation during active layout pass to avoid re-entrancy.Output screenshots
Added:
MR CheckList