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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Collapse a ressource group on/after loading

Thread ID:

Created:

Updated:

Platform:

Replies:

142587 Feb 11,2019 10:34 AM UTC Feb 12,2019 09:28 AM UTC ASP.NET Core - EJ 2 3
loading
Tags: Scheduler
Stefan
Asked On February 11, 2019 10:34 AM UTC

I've got a number of grouped ressources, similar to your sample
https://ej2.syncfusion.com/aspnetcore/Schedule/TimelineResourceGroup

Upon loading of the schedule, I'd like to collapse all groups that are not the primary group of the User. I've tried around a bit, e.g. by trying to simulate a click event for elements by class e-rsssource-collapse, but can't quite get it to work.

Using the sample above, how could I collapse "Project 2" on or after the schedule has loaded?

Thanks!

Karthigeyan Krishnamurthi [Syncfusion]
Replied On February 12, 2019 04:12 AM UTC

 
Thank you for contacting Syncfusion support. 
 
We can display the desired parent resource in collapse state using expandedField and kindly refer the below sample. 
 
{ 
      field: 'ProjectId', title: 'Choose Project', name: 'Projects', 
      dataSource: [ 
        { text: 'PROJECT 1', id: 1, color: '#cb6bb2' }, 
        { text: 'PROJECT 2', id: 2, color: '#56ca85', expanded: false }, 
        { text: 'PROJECT 3', id: 3, color: '#df5286' } 
      ], 
      textField: 'text', idField: 'id', colorField: 'color', expandedField: 'expanded' 
    } 
 
Above sample is for your reference and the same can be achieved in Core. 
 
Regards, 
Karthigeyan 



Stefan
Replied On February 12, 2019 08:16 AM UTC

Thank you Karthigeyan,
I've been through the documentation a good number of times and could have sworn this wasn't there for long - maybe I need glasses.

Outstanding support, as always!
Kind regards
Stefan

Karthigeyan Krishnamurthi [Syncfusion]
Replied On February 12, 2019 09:28 AM UTC

 
We are happy that our solution fulfilled your requirement. 
 
Regards, 
Karthigeyan 
 


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

;