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
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 messagesobject 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";
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.