search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Row selection in latest versions.

Asked by Vladislav Shestakov
3 years ago.

I have updated the version to the latest.
In my previous version(2019.4.4101) i used row selection functionality. And it worked correct. But now after select row, it rerender dom elements and then delete my custom event listeners from cells of row. Maybe there are properties to make this work as before?

Comment posted by Dan Letecky [DayPilot]
3 years ago.

Can you please post an example that reproduces the problem? You can generate a blank project at https://builder.daypilot.org/.

Comment posted by Vladislav Shestakov
3 years ago.

I cannot do this in the builder. I will try to describe in more detail.
1) We are using the scheduler.
2) In the onAfterRender event, in our application, we add browser events to the resource cells. For example click, dblclick, focus.
3) And now, after using scheduler.control.rows.selection.add (), our custom browser events are removed from the dom
Code example: https://postimg.cc/zHDXc6Qb

Answer posted by Dan Letecky [DayPilot]
3 years ago.

The onAfterRender event handler is not a good place to do this. It's only fired if the whole Scheduler is updated.

If you want to customize the grid cell elements you should use onAfterCellRender instead. This event handler is called whenever a cell is rendered.
https://api.daypilot.org/daypilot-scheduler-onaftercellrender/

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.