I have spreadsheet on window and I add extra columns in spreadsheet on show event of window, and then change header values of dynamically added columns onBeforeSheetShow of spreadsheet but it not works, so please tell me alternate solution of it.
Hey @pratikshadatir1, you can change the header text inside of a onColumnInit event, it will work just fine with dynamically added columns: https://snippet.webix.com/k7wvfxav.
Not Working for dynamically added call please provide example.
What do you mean by that? In the above example (https://snippet.webix.com/k7wvfxav), there are 5 columns, and I'm adding a 6th column dynamically via insertColumn() method, onColumnInit works just fine.
Hello Please refer following snippet,
I use the code for changing headers and add columns in spreadsheet which is written on onViewShow event. And I have two spreadsheet, I used same code for both spreadsheets, but it not works please provide solution as soon as possible.
As I've already mentioned, only way to change the column header text is by using the onColumnInit event, it won't work with any other event (from what I've seen). Here is a bit more obvious example with dynamic columns added on a button click: https://snippet.webix.com/1rna3st8.
It looks like you're new here. If you want to get involved, click one of these buttons!