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

Collapsing the Ribbon in the Spreadsheet


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


3 Replies

SI Silambarasan I Syncfusion Team March 12, 2019 04:15 AM

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 () { 
        loadComplete: "onLoadComplete" 
function onLoadComplete(args) { 
    //Collapse ribbon option 
    $("#" + this._id + "_Ribbon").data("ejRibbon").collapse(); 
Demo sample: 

SS Sarah Smith March 13, 2019 12:51 AM

Worked a treat! 

Thanks a lot.

SI Silambarasan I Syncfusion Team March 13, 2019 03:41 AM

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

Live Chat Icon For mobile
Up arrow icon