This is a migrated thread and some comments may be shown as answers.

I need this Line in JS .Filter(filters=>{ filters.Add(model => model.Title).IsEqualTo("karam"); })

1 Answer 10 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
K.Ramadan
Top achievements
Rank 2
Veteran
K.Ramadan asked on 03 Mar 2020, 03:08 PM

So I need to see just the events with a specific Title, ID or Employee . . . . .

I searched and I found this way to implement the filter in the razor code on the scheduler directly .... but it will show me the filtered events all the time.

So I need to do this dynamically ... with Multi-Select Options...

This is my MultiSelect :

 

@(Html.Kendo().MultiSelect()
                 .Name("events_MultiSelect")
                 .Placeholder("Filter . . .")
                 .ValuePrimitive(true)
                 .DataTextField("Title")
                 .DataValueField("Title")
                 .Events(eventt =>{
                        eventt.Open("openMultiSelect");
                        eventt.Change("changeMultiSelect"); })
                  .DataSource(source =>{
                         source.Custom()
                             .Type("aspnetmvc-ajax")
                             .Transport(transport =>{
                                    transport.Read("GetEvents", "Filter"); })
                                                .Schema(schema =>{
                                                 schema.Data("Data")
                                                    .Total("Total")
                                                    .Errors("Errors");
                                            });
                                        })
                                        )

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 05 Mar 2020, 11:23 AM

Hello,

The scenario is similar to the one available in this help article: https://docs.telerik.com/kendo-ui/controls/scheduling/scheduler/how-to/filtering/filter-events-by-resource-using-multiselect

In MVC, you need again to handle the change event of the MultiSelect and call the same JS logic and filter with the desired fields. 

Regards,
Ianko
Progress Telerik

Get quickly onboarded and successful with your Telerik UI for ASP.NET MVC with the dedicated Virtual Classroom technical training, available to all active customers.
Tags
Scheduler
Asked by
K.Ramadan
Top achievements
Rank 2
Veteran
Answers by
Ianko
Telerik team
Share this question
or