Change Widget Properties in Custom Scheduled Task's Code

Siavash Mortazavi asked on August 9, 2016 15:14

Hi,

I have a widget on a page, and I have exposed the "Visible" property of the base webpart to the widget, so editors can set the visibility of the widget on the Page tab.

How can I set the value of the "Visible" property in a custom scheduled task's code, in a way that when Visible is off, it's globally off and not displayed to any user.

If you can show me some reference or a code snippets, I really appreciate it.

Thanks.

Recent Answers


Petar Kozjak answered on August 9, 2016 16:16

Hi,

I think we have done this only once with WebParts. I know this is old code, but can you try to find some inspiration in here how to do it: https://devnet.kentico.com/articles/how-to-dynamically-change-properties-of-some-web-part-or-widget

0 votesVote for this answer Mark as a Correct answer

Siavash Mortazavi answered on August 9, 2016 16:25

Cool! Thank you Petar! :-)

0 votesVote for this answer Mark as a Correct answer

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