We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Resources or Appointments filtering doesn't work

Hello,

i am trying to filter according to :

  • the type of my Resources (like a list of persons with different roles. 
  • type of Appointments 

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.


10 Replies

SS SaiGanesh Sakthivel Syncfusion Team April 24, 2023 01:20 PM UTC

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



SS SaiGanesh Sakthivel Syncfusion Team April 26, 2023 12:33 PM UTC

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



MA Mackenson April 27, 2023 07:49 PM UTC

Hi  Sakthivel,

thank you very much.



KA Karthikraja Arumugam Syncfusion Team May 1, 2023 10:10 AM UTC

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



VO Vishal Omprasad Syncfusion Team May 9, 2023 12:36 PM UTC

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.



SS SaiGanesh Sakthivel Syncfusion Team May 23, 2023 12:42 PM UTC

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.



KM kenny Monch May 24, 2023 09:00 PM UTC

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



SS SaiGanesh Sakthivel Syncfusion Team May 25, 2023 12:27 PM UTC

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.


Attachment: SchedulerMAUI_c5424c17.zip


KM kenny Monch replied to SaiGanesh Sakthivel May 25, 2023 09:30 PM UTC

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



SS SaiGanesh Sakthivel Syncfusion Team May 26, 2023 12:41 PM UTC

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


Attachment: SchedulerMAUI_b858829.zip

Loader.
Live Chat Icon For mobile
Up arrow icon