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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Filter horizontal grouping on Schedule

Thread ID:

Created:

Updated:

Platform:

Replies:

147417 Sep 10,2019 07:11 AM UTC Sep 13,2019 04:06 AM UTC Angular - EJ 2 3
loading
Tags: Schedule
Sergio
Asked On September 10, 2019 09:04 AM UTC

Hi all!

I'm looking for a way to filter group items on a schedule.
Please, look at this example: https://ej2.syncfusion.com/angular/demos/#/material/schedule/resource-grouping
What I'm trying to reach is to have only one item in that header, for example 'Airways 1', with it's calendar below; and some kind of scroll-arrows or button to display the other Airways 2 and 3, and once pressed, display only the calendar attached to this new group.

I think this could be an option:
Anyway, I would prefer a button that, when pressed, displays a list with the other options.

I hope I have been clear enough.




Karthigeyan Krishnamurthi [Syncfusion]
Replied On September 11, 2019 11:00 AM UTC

Hi Sergio, 
 
Syncfusion greetings. 
 
We have prepared the below sample to display the resource based on button click. 
 
<div class='buttonDiv'> 
         <button id='prevButton'  cssClass="e-flat" iconCss="e-btn-sb-icon e-prev-icon" ejs-button (click)="onPreviousClick()" ></button> 
         <button id='nextButton'  cssClass="e-flat" ejs-button class = 'e-btn-sb-icon e-next-icon' (click)="onNextClick()"></button> 
 </div> 
 
onPreviousClick() { 
    let index = this.getResourceIndex(); 
    if (index > 0) { 
      let resource = (this.resourceDataSource[index - 1] as any).AirlineId; 
      this.scheduleObj.resources[0].query = new Query().where('AirlineId', 'equal', resource); 
      this.scheduleObj.dataBind(); 
    } 
  } 
  onNextClick() { 
    let index = this.getResourceIndex(); 
    if (index < this.resourceDataSource.length - 1) { 
      let resource = (this.resourceDataSource[index + 1] as any).AirlineId; 
      this.scheduleObj.resources[0].query = new Query().where('AirlineId', 'equal', resource); 
      this.scheduleObj.dataBind(); 
    } 
  } 
 
Regards, 
Karthi 
 


Sergio
Replied On September 12, 2019 02:55 PM UTC

It has helped so much, thanks!

Karthigeyan Krishnamurthi [Syncfusion]
Replied On September 13, 2019 04:06 AM UTC


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon