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

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

1 Answer 166 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
M
Top achievements
Rank 1
M asked on 10 Oct 2018, 07:15 PM

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.

 

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 12 Oct 2018, 09:06 AM
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.
Tags
Spreadsheet
Asked by
M
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or