Hello,
i am trying to filter according to :
but unfortunately it doesn't work. Even when i clear my resource list the GUI doesn't replicate the change.
Do you have any exampl to do this kind of stuff please ?
Regards
Mackenson.
Hi Mackenson,
Currently, we are checking the reported query from our end. We will update you on the further details on April 26, 2023. We appreciate the patience until then.
Regards,
SaiGanesh Sakthivel
Hi Mackenson,
#Regarding
Appointment filtering and resource filtering is not working correctly
We have found and fixed the reported scenario from our end. We will include the
issue fix in our weekly nuget release which is expected to roll out on May 9,
2023. We appreciate your patience until then.
Regards,
SaiGanesh Sakthivel
Hi Sakthivel,
thank you very much.
Hi Mackenson,
Thank you for the update. As mentioned earlier, we will include the fix for the issue in our weekly NuGet release, which is expected to roll out on May 9, 2023. We appreciate your patience until then.
Regards,
Karthik Raja A
Hi Mackenson,
We are unable to include the fix in our weekly nuget release on May 9, 2023. Due to the stability of the control, it took more time for testing than we expected.
But assuredly, we will include the fix in our upcoming weekly nuget on May 23, 2023. We will let you know once Nuget gets published, and we appreciate your patience until then.
Note: Please let us know if you require a patch before our weekly nuget release on May 23, 2023.
Regards,
Vishal O.
Mackenson,
#Regarding Appointment filtering and resource filtering is not working correctly
We have fixed the reported issue and included the issue fix in our latest Weekly NuGet release update version 21.2.6 onwards which is available for download (nuget.org).
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.
Hi Sakthivel,
do you have an exampl of how to use it please ?
I updated the nuget package with new version, first now i can see that my key doesn't work anymore ;(
then i tried to filter the resource but unfortunately it doesn't work.
Regards
Mackenson,
#Regarding Appointment and resource filter in the Scheduler
Your requirement can be achieved with the help of TextChanged event in the entry control. Inside the event, you can filter the appointment or resource collection by the enter text. Please refer to the code snippet for your reference.
Code Snippet
|
<Grid> <Grid.RowDefinitions> <RowDefinition Height="0.1*"/> <RowDefinition Height="0.9*"/> </Grid.RowDefinitions> <StackLayout Orientation="Horizontal"> <Entry TextChanged="Entry_TextChanged" Placeholder="Filter Resource" /> <Entry TextChanged="Entry_TextChanged_1" Placeholder="Filter Appointment"/> </StackLayout> <schedule:SfScheduler x:Name="Scheduler" Grid.Row="1" View="TimelineMonth" AppointmentsSource="{Binding Events}" AllowedViews="TimelineDay,TimelineMonth,TimelineWeek,TimelineWorkWeek" > <schedule:SfScheduler.Resources> <local:SfImageSourceConverter x:Key="imageConverter"/> </schedule:SfScheduler.Resources> <schedule:SfScheduler.ResourceView> <schedule:SchedulerResourceView Resources="{Binding Resources}"> <schedule:SchedulerResourceView.Mapping> <schedule:SchedulerResourceMapping Name="Name" Id="Id" Background="Background" Foreground="Foreground"/> </schedule:SchedulerResourceView.Mapping> </schedule:SchedulerResourceView> </schedule:SfScheduler.ResourceView>
<schedule:SfScheduler.AppointmentMapping> <schedule:SchedulerAppointmentMapping Subject="EventName" StartTime="From" EndTime="To" Background="Background" IsAllDay="IsAllDay" StartTimeZone="StartTimeZone" EndTimeZone="EndTimeZone" ResourceIds="Resources"/> </schedule:SfScheduler.AppointmentMapping>
<schedule:SfScheduler.TimelineView> <schedule:SchedulerTimelineView StartHour="8" EndHour="20"/> </schedule:SfScheduler.TimelineView> </schedule:SfScheduler> </Grid> |
TextChanged event
|
private void Entry_TextChanged(object sender, TextChangedEventArgs e) { if (String.IsNullOrEmpty((sender as Entry).Text)) { Scheduler.ResourceView.Resources = viewmodel.Resources; } else { var filteredResources = new ObservableCollection<object>(); foreach (Employee resource in viewmodel.Resources) { if (resource.Name.ToLower().Contains((sender as Entry).Text.ToLower())) { filteredResources.Add(resource); } }
Scheduler.ResourceView.Resources = filteredResources; } }
private void Entry_TextChanged_1(object sender, TextChangedEventArgs e) { if (String.IsNullOrEmpty((sender as Entry).Text)) { Scheduler.AppointmentsSource = viewmodel.Events; } else { var filteredEvents = new ObservableCollection<Meeting>(); foreach (Meeting appointment in viewmodel.Events) { if (appointment.EventName.ToLower().Contains((sender as Entry).Text.ToLower())) { filteredEvents.Add(appointment); } }
Scheduler.AppointmentsSource = filteredEvents; } } |
Please refer to the demo sample in the attachment. Please let us know if you have any concerns.
Hello,
i got this when i tried to launch the demo sample :
System.Resources.MissingManifestResourceException : 'Could not find the resource "Syncfusion.Maui.Scheduler.SfScheduler.Resources.SfScheduler.resources" among the resources "" embedded in the assembly "Syncfusion.Maui.Scheduler", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.'
Regards
Hi Kenny,
We could not replicate the reported scenario from our end. We have checked the sample from our side. Please refer to the tested sample in the attachment.
Output
Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with the following details,
.
Share the issue replication steps and video.
Share the issue replicated platform.
Share the device configurations.
It will be helpful for us to check on it and provide you with the solution as soon as possible.
Regards,
SaiGanesh Sakthivel