How to change the text of remove sheet confirm message

4 posts, 1 answers
  1. Nadav
    Nadav avatar
    5 posts
    Member since:
    Mar 2017

    Posted 29 Aug Link to this post

    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

  2. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    563 posts

    Posted 31 Aug Link to this post

    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.
  3. Nadav
    Nadav avatar
    5 posts
    Member since:
    Mar 2017

    Posted 31 Aug in reply to Veselin Tsvetanov Link to this post

    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

  4. Answer
    Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    563 posts

    Posted 01 Sep Link to this post

    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.
Back to Top