Feature settings dropdown list retain value

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/5/2010 9:53:48 AM
Gravatar
Total Posts 190

Feature settings dropdown list retain value

Hi All,

I have a custom feature that I have added a dropdown list for the feature settings. I copied the example of the google map type that implements UserControl and ISettingControl exactly, but the value doesn't seem to be set in the dropdown when you return to the settings page. The correct value appears to be used when you select a value and save the settings, but that value isn't displayed in the dropdown when you return to the settings page. It always defaults to the first item in the list. Is there possibly some other property I'm missing here?

Thanks,

John

4/8/2010 4:42:16 PM
Gravatar
Total Posts 190

Re: Feature settings dropdown list retain value

Nobody else seeing this happen?

(for some odd reason, my SetValue method doesn't seem to be getting called.)

4/8/2010 5:35:58 PM
Gravatar
Total Posts 190

Re: Feature settings dropdown list retain value

I figured this one out. It appears the SetValue method is called before the Page_Load in the control. I was populating the list options in the Page_Load event. I have the options loaded now before SetValue does its thing, so it's all good.

You must sign in to post in the forums. This thread is closed to new posts.