More in this section
Forums / Developing with Sitefinity / Order of Widget Loading on Page

Order of Widget Loading on Page

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Ravi
    Ravi avatar
    4 posts
    20 May 2014
    02 Jun 2014
    Link to this post


    I have mutliple MVC widgets on the Sitefinity Page. In one of the widget I search for some value and in another widget the searched content needs to be displayed. I am saving the searched value in a cache in the first widget and then the second widget loads the cache data.

    But when the page loads, the second widget is loaded first and then the first widget. When I do my search the first widget saves the data in cache but cannot see the value in the second widget in that postback because the second widget already loaded before first widget.

    Is there a way I could make the second widget load after the first widget.


  2. Ivan D. Dimitrov
    Ivan D. Dimitrov avatar
    310 posts
    26 Mar 2015
    04 Jun 2014
    Link to this post
    Hi Ravi,

    It seems to me that you need your second widget to be called into action and not load on when the page is loaded. Have you considered either executing the logic of the second widget when some event is triggered as an event handler, or place all the logic within the same widget so as when a postback occurs the second part of your logic triggers?

    Ivan D. Dimitrov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered