Update View Component

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 year ago
In v4.6 is there a way to update a View Component without reloading the main View that originally loads the View Component

I tried a JScript routine on a timer to use a Route to call a Controller routine that does a ViewComponent(typeof(XXXViewComponent)) with the view to return the Html so it can be injected to a <div> as per some old Google Posts

This does call the InvokeAsync() but maybe the problem is I did not know how to await the return value from InvokeAsync() as it appears you cannot await ViewComponent(...)

Any suggestions on how to do it would be appreciated
1 year ago
No one has done it or its not possible ?
1 year ago
Yidna wrote:
No one has done it or its not possible ?

I guess I answered my own question  ?
1 year ago
We have not tried this and a little more detail may help but here's a possible solution.

You could try sticking the view component into a view that's only job is to render the view component. You would then call the controller action with jQuery.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.