November Happy Hour will be moved to Thursday December 5th.

List property ReloadOnChange event trigger issue

Vote:
 

Hi Team,

  I  am able to implment casecading dropdown functionaliy inside the page content. But I am not able to implement for IList property. ReloadOnChange event is not triggered for IList Model popup. Below is my code. 

        [Display(GroupName = SystemTabNames.Content, Order = 103)]
        [SelectOne(SelectionFactoryType = typeof(StateSelectionFactory))]
        [ReloadOnChange]
        public virtual string State { get; set; }

        [Display(GroupName = SystemTabNames.Content, Order = 104)]
        [SelectOne(SelectionFactoryType = typeof(CitySelectionFactory))]
        public virtual string City { get; set; }

Looking for help..!

#292585
Edited, Dec 02, 2022 12:11
Vote:
 

Hi Team,

  Can anyone please help me to resolve this issue ?

#292698
Dec 05, 2022 12:09
Vote:
 

Hello Binay,

I assume this is for On Page Edit mode? have you added these properties to the edit hints within your controller as well as in the razor file?  The following documentation suggests you need both parts of the puzzle for it to work:

https://docs.developers.optimizely.com/content-cloud/v12.0.0-content-cloud/docs/edit-hints-in-mvc

e.g.

The following in the Controller

        var editingHints = ViewData.GetEditHints<PageViewModel, Page>();
        editingHints.AddFullRefreshFor(p => p.MyProperty);

The following in the Razor file:

@Html.FullRefreshPropertiesMetaData()

I tested needing both of these in my solution to make this work.

#292738
Edited, Dec 06, 2022 11:59
Vote:
 

Hi Mark Stott ,

  Thank you for response.

 I tried the above solution but it's not worked. I wanted to refresh IList popup content in the edit mode

#292907
Edited, Dec 09, 2022 9:55
* 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.