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

Collapse All Project

Thread ID:

Created:

Updated:

Platform:

Replies:

149031 Nov 12,2019 12:00 PM UTC Nov 13,2019 06:58 AM UTC Angular - EJ 2 3
loading
Tags: Schedule
mehmet yanbak
Asked On November 12, 2019 12:00 PM UTC

Hi,

I want all projects to collapse when the component is initialize. So events should not appear when component initialize.  How can I do this ? Please find attached a sample image. 

Attachment: schedule_fae66491.rar

Vinitha Devi Murugan [Syncfusion]
Replied On November 13, 2019 05:58 AM UTC

Hi mehmet, 
 
Syncfusion Greetings. 
 
To collapse the parent resource at initial load, kindly use expandedField as below.  
 
 
<e-resources> 
             <e-resource field='ProjectId' title='Choose Project' [dataSource]='projectDataSource' [allowMultiple]='allowMultiple' name='Projects' 
                    textField='text' idField='id' colorField='color' expandedField='Expand' > 
                </e-resource> 
 
public projectDataSource: Object[] = [ 
        { text: 'PROJECT 1', id: 1, color: '#cb6bb2', Expand:false }, 
        { text: 'PROJECT 2', id: 2, color: '#56ca85', Expand:false }, 
        { text: 'PROJECT 3', id: 3, color: '#df5286', Expand: false } 
    ]; 
 
Regards, 
M.Vinitha devi 


mehmet yanbak
Replied On November 13, 2019 06:24 AM UTC

Hi,

It works. Thank you so much for your support :)

Vinitha Devi Murugan [Syncfusion]
Replied On November 13, 2019 06:58 AM UTC

  
Hi Mehmet, 
 
You are most welcome 😊. 
 
Regards, 
M.Vinitha devi 


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