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
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Collapsing the Ribbon in the Spreadsheet

Thread ID:

Created:

Updated:

Platform:

Replies:

143260 Mar 12,2019 05:26 AM UTC Mar 13,2019 08:41 AM UTC jQuery 3
loading
Tags: ejSpreadSheet
Damien Turnbull
Asked On March 12, 2019 05:26 AM UTC

Hi

Is there a way to set the Ribbon on the spreadsheet control so it's collapsed by default?

Thanks

Silambarasan I [Syncfusion]
Replied On March 12, 2019 09:15 AM UTC

Hi Damien, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported query and your requirement ‘To enable the ribbon in a collapsed state’ can be achievable by using ‘collapse()’ client-side method from ejRibbon instance in Spreadsheet. Please refer the following code example. 
 
 
<div id="Spreadsheet"></div> 
 
$(function () { 
    $("#Spreadsheet").ejSpreadsheet({ 
        //... 
        loadComplete: "onLoadComplete" 
    }); 
}); 
 
function onLoadComplete(args) { 
    //Collapse ribbon option 
    $("#" + this._id + "_Ribbon").data("ejRibbon").collapse(); 
} 
 
 
Demo sample: 
 
Regards, 
Silambarasan 


Damien Turnbull
Replied On March 13, 2019 05:51 AM UTC

Worked a treat! 

Thanks a lot.

Silambarasan I [Syncfusion]
Replied On March 13, 2019 08:41 AM UTC

Hi Damien, 
 
Most welcome. Please get back to us if you need any further assistance. We are happy to help you out. 
 
Regards, 
Silambarasan 


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