Hi... what is now days the proper way to reload a widget after an ajax call? I'm rendering a dx add form on another page and want to reload the widgets (pat-pickadate) if the ajax post fails.
thanks
Hi... what is now days the proper way to reload a widget after an ajax call? I'm rendering a dx add form on another page and want to reload the widgets (pat-pickadate) if the ajax post fails.
thanks
You can try calling registry.scan on the contents.
Something like this:
require([
'pat-registry'
], function(registry){
// do something where it needs to scan...
registry.scan($('.selector-to-contents-to-rescan'));
});