Handling widgets contains JavaScript reference

by berkay 2. December 2011 13:33

JavaScript references make a trouble by using dynamically loaded user controls via ajax. Because Javascript references are loaded on page postback.

If you want to use javascript references in widgets , you should add references to page contains DashboardSurface or you should set NeedsReloading property of Widget Definition true.

After setting NeedsReloading true , widget fires postback on this widget adding. In other cases , page will not be postback. for example (second adding of same widget or firing some commands)

Tags: