This is a migrated thread and some comments may be shown as answers.

Sheetsbar disable "add"

3 Answers 264 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
DM
Top achievements
Rank 1
DM asked on 09 May 2017, 01:26 PM

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

 

3 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 10 May 2017, 07:29 AM
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.
0
DM
Top achievements
Rank 1
answered on 10 May 2017, 07:34 AM

Hi Ivan

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

Mat

0
Ivan Danchev
Telerik team
answered on 11 May 2017, 01:39 PM
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.
Tags
Spreadsheet
Asked by
DM
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
DM
Top achievements
Rank 1
Share this question
or