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

Row selection in latest versions.

Asked by Vladislav Shestakov
26 days 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?

1 other person also wants an answer.
Comment posted by Dan Letecky [DayPilot]
26 days 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
25 days 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]
25 days 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/

New Reply
This reply is
Your name (optional):