Try our conversational search powered by Generative AI!

Set default value on a blockproperty dropdown populated via Iselectionfactory

Vote:
 

I have a dropdown populated through an editordescriptor/iselectionfactory. It contains pagereferences to contacpages.

Now Im trying to set it to an default value in override setdefaultvalues in my sitepagebase class.

I have verified that I can I find the matching contact page for the currently logged in user.

But setting the dropdown make the dropdown not display or doesn't display.

I have tried the following. user below contains the pageref value of the contact page.

this.InformationOwnerBlock.PageOwner = PageReference.Parse(user);

this.SetPropertyValue(p => p.InformationOwnerBlock.PageOwner,PageReference.Parse(user));

Am i doing something wrong or isn't it possible?

#71806
May 29, 2013 17:32
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.