SpreadJS - SUpport hiding scrollbars

Posted by: molc2k on 8 September 2017, 12:43 am EST

    • Post Options:
    • Link

    Posted 8 September 2017, 12:43 am EST

    Hi,

    I’m implementing a custom UI using spreadJS as a base but I need to hide the scrollbars. To remove them, I’m hiding the element through jQuery, but the space is still reserved after this operation.

    Is there a way to do this or a planned feature?

    Code I’ve tried:

    var elementToUpdate = “#” + self.elementClientId + “-Spread”;

    // Otherwise we’re paging so hide scrollbars.

    $(elementToUpdate + “hs”).hide();

    $(elementToUpdate + “vs”).hide();

    //If showing scrollbars, oversize the element and hide overflow, so we can slip the bars off the control

    if (typeof self.spread != “undefined”) {

    var height = $(elementToUpdate).height();

    var width = $(elementToUpdate).width();

    $(elementToUpdate).css(“width”, width + 20);

    $(elementToUpdate).css(“height”, height + 20);

    $(elementToUpdate).wijspread(“refresh”);

    //Now, size the elements back down to hide the space the bars occupied

    $(elementToUpdate).css(“width”, width + 2);

    $(elementToUpdate).css(“height”, height + 2);

    }

  • Posted 8 September 2017, 12:43 am EST

    Sorry for the delay, your thread was marked as spam incorrectly. You should receive a reply soon.

  • Posted 8 September 2017, 12:43 am EST

    Molc,

    I was able to notice the issue which you are referring to. Unfortunately currently there is no inbuilt option available to show/hide the scrollbars. I have escalated this issue as an enhancement request to the developers. We will let you know once this feature would be included in future builds.

    In the meantime you may want to post this feature as an enhancement request on our UserVoice Page so that other users can also vote and it can implemented on priority.

    Regards,

    Sankalp

  • Posted 8 September 2017, 12:43 am EST

    Hello,

    Sorry for the delay in getting back to you. SpreadJS now allows hiding/showing of scrollbars. Please check the following link for more details:

    http://helpcentral.componentone.com/NetHelp/SpreadHClientUG/webframe.html#scrollbars.html

    Regards,

    Sankalp

  • Posted 4 June 2020, 4:38 am EST - Updated 3 October 2022, 1:14 am EST

    Hi - Is there an up to date link for this please?

  • Posted 4 June 2020, 5:14 pm EST

    Hi,

    showVerticalScrollbar and showHorizontalScrollbar options could be used to set the visibility of the scrollbars. You may refer to the following demo demonstrating the same:

    https://www.grapecity.com/spreadjs/demos/features/workbook/scrollbars/overview/purejs

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels