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

Collapse All Project

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

3 Replies

VD Vinitha Devi Murugan Syncfusion Team November 13, 2019 12:58 AM

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 



MY mehmet yanbak November 13, 2019 01:24 AM

Hi,

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


VD Vinitha Devi Murugan Syncfusion Team November 13, 2019 01:58 AM

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


Loader.
Live Chat Icon For mobile
Up arrow icon