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

How to change the text of remove sheet confirm message

3 Answers 104 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Nadav
Top achievements
Rank 1
Nadav asked on 29 Aug 2017, 09:09 AM

Hi 

I am trying to change the confirm message text of delete/ remove sheet from a spreadsheet but the message appear before removeSheet event so i can not find an access point to that message from any of the spreadsheet events.

Thanks 

Nadav

3 Answers, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 31 Aug 2017, 06:43 AM
Hello Nadav,

To customize the Remove sheet message, you could directly alter the messages object for the Spreadsheet. In particular, you should change the ​text ​property of the kendo.spreadsheet.messages.dialogs.confirmationDialog object:
kendo.spreadsheet.messages.dialogs.confirmationDialog.text = "Custom text to confirm";

Here you could find a simple Dojo, implementing the above suggestion.

Regards,
Veselin Tsvetanov
Progress Telerik
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
Nadav
Top achievements
Rank 1
answered on 31 Aug 2017, 12:15 PM

Hi Veselin 

Thank you for your quick replay, i wonder if it is possible to set this confirm dialog to RTL?

I tried to change it but did not find where to to this.

Regards

Nadav

0
Accepted
Veselin Tsvetanov
Telerik team
answered on 01 Sep 2017, 06:09 AM
Hi Nadav,

Currently the RTL mode is not supported neither for the Spreadsheet nor for its dialogs. Nevertheless, you could manually inject the needed class (k-rtl) to make the required dialog RTL. To do that you could handle the render and insertSheet events of the Spreadsheet.

Simple Dojo could be found here.

Regards,
Veselin Tsvetanov
Progress Telerik
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
Nadav
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Nadav
Top achievements
Rank 1
Share this question
or