Programmatically create instance of DynamicContentView

Posted by Community Admin on 04-Aug-2018 18:43

Programmatically create instance of DynamicContentView

All Replies

Posted by Community Admin on 12-Apr-2012 00:00

So I am trying to programattically render a widget from a custom module on a page. I can do this easily with News by doing the following:

var control = new NewsView() DetailItem = item ;
page.Controlls.Add(control);

How would I do this for a custom module? It seems that the view object is DynamicContentView. What all would I need to set on it to create an instance of one and have it render?

Posted by Community Admin on 13-Apr-2012 00:00

Anyone out there?

Posted by Community Admin on 16-Apr-2012 00:00

Still looking for an answer...

Posted by Community Admin on 17-Apr-2012 00:00
Posted by Community Admin on 17-Apr-2012 00:00

Erik, I was about to post suggesting that perhaps the solution might apply here as well, thank you for taking the time to update the thread!

This thread is closed