CMS control's event handler

joyanta sen asked on July 14, 2018 00:05

Hi,

Is there any document to know the event handlers available for any specific CMS controls. Like OnDayRender event available for CMSCalaendar.

Thanks. Joyanta

Recent Answers


Peter Mogilnitski answered on July 14, 2018 14:45 (last edited on July 15, 2018 19:22)

You may consult CMS.DocumentEngine.Web.UI Namespace:

  1. click on a control you need
  2. scroll down to events section.

On top of it you can check CMSAbstractWebPart class since all web parts inherit it (or their base class inherits from it). Methods from there (OnInit, OnLoad , OnPreRender, Render, etc) are available.

0 votesVote for this answer Mark as a Correct answer

Suiter Jones answered on July 16, 2018 09:03 (last edited on July 16, 2018 11:07)

I made Control for displaying messages. It is Panel with labels for username, date and message, and two buttons for Edit and Delete. I have two events: onEdit and onDelete. I want to remove component upon clicking the Delete button. I do that from a parent form in onDelete event handler, but still got Access Violation. I used solution proposed here but I don't like it a lot. mobdro.io

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.