Changing cell style (bold, italic, font size and family) does not trigger change event

2 posts, 0 answers
  1. M
    M avatar
    1 posts
    Member since:
    Oct 2018

    Posted 10 Oct 2018 Link to this post

    Hello, when I   a spreadsheet as follows:

    ```

    $("#spreadsheet").kendoSpreadsheet({
      changeFormat:() => {
        console.log("Change!");
      }
    });

    ```

    The callback for changeFormat is not called when I change a cell's styling. However, if I change a cell's format, like currency, number, date, etc, it is called.

    Perhaps there is a different event fired for when a cell's styles change? Though I'm unable to find any other event in the list that is even somewhat close to this. The "change" event also does not get triggered in this case.

     

  2. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    1219 posts

    Posted 12 Oct 2018 Link to this post

    Hello,

    The changeFormat handler will be fired only when the cell value format has been changed. Changing the styling of the cell will not trigger that event.

    The Spreadsheet does not expose a dedicated event handler that would be executed after a change of the cell styling. Depending on your needs you may use the render event instead, which will be fired on any change of the widget editable area rendering:
    $("#spreadsheet").kendoSpreadsheet({
      changeFormat:() => {
        console.log("Change!");
      },
      render:() => {
        console.log('render')
      }
    });

    Regards,
    Veselin Tsvetanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top