Sheetsbar disable "add"

4 posts, 0 answers
  1. Mattia
    Mattia avatar
    5 posts
    Member since:
    Jan 2015

    Posted 09 May 2017 Link to this post

    Is it possibile to disable only the "Add" or "+" on sheetsbar?

     

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    2053 posts

    Posted 10 May 2017 Link to this post

    Hello Mattia,

    If you want the button to remain visible but to be disabled, i.e. to prevent the addition of a new sheet on click, you can do so as shown below:
    $(".k-spreadsheet-sheets-bar .k-i-plus").click(function(e) {
      e.stopPropagation();
    });

    You can also hide it with jQuery:
    $(document).ready(function() {
        $(".k-spreadsheet-sheets-bar .k-i-plus").hide();
    });


    Regards,
    Ivan Danchev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Mattia
    Mattia avatar
    5 posts
    Member since:
    Jan 2015

    Posted 10 May 2017 in reply to Ivan Danchev Link to this post

    Hi Ivan

    thank for your replay. Is it possibile to do it on angular?

    Mat

  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    2053 posts

    Posted 11 May 2017 Link to this post

    Hi Mat,

    Here's an example showing how the button can be disabled in angular scenario in the Spreadsheet's render event.

    Regards,
    Ivan Danchev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top