Try our conversational search powered by Generative AI!

Can not update the value(this.value) of Dojo widget after using Dialog

Vote:
 

When you have custom Dojo widget and update this.value = 'blabla' then Widget doesn't notify EpiServer and "Publish Changes" button doen't apper.

This issue appear only after when you use Dialog in widget: when you open dialog or close it then this.value = 'blabla' doesn't triegger change notification.

Tested this on EpiServer 9.6.1.0 but the same issue was in prev version too: http://world.episerver.com/Modules/Forum/Pages/thread.aspx?id=76726

To fix it, after using Dialog widget, you should to redirect focus to this (to main widget):

1
2
3
4
5
6
//take focus to main control
this.onFocus();
//update a value
this.value = result;
//trigger change event
this.onChange(this.value);

Please fix this in EpiServer that it works by default - without setupping focus

#143880
Feb 02, 2016 17:31
Vote:
 

Thank you so much! This has been bugging me all day!

#192497
May 17, 2018 12:45
* 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.