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

How to access current column for onBeforeRowHeaderDomAdd?

Asked by andy
16 hours ago.

Hello,

When we provide multiple columns for left sidebar, ie:

rowHeaderColumns: [{ id: firstColumn }, { id:  secondColumn }]

Is there a way to access which column are we rendering row header’s content for?

While not obvious, it seems like `args.x` is the current column index being rendered.

Answer posted by Dan Letecky [DayPilot]
2 hours ago.

Hi Andy,

Yes, args.x is the column index.

However, I recommend using onBeforeRowHeaderRender instead when possible (you can access the header cell properties using args.rows.columns[] there). The onBeforeRowHeaderDomAdd should be only used if you really need access to the DOM element.

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):