May 22, 2013, 2:04 PM
[CLOSED] Set complex objects to custom config value during direct event
Hello,
I have custom config definitions for a viewport and I can set complex values (Dictionary object, List etc.) during page load as below:
It works fine during page load.
How can I re-set "MyCustomConfig" in a direct event call? MyViewport.Set("MyCustomConfig", MyDictionary) has no effect.
I tried using MyViewport.AddScript("App.MyViewport.MyCustomConfi g = {0};", MyDictionary) but it does not work.
Any idea?
Thanks.
I have custom config definitions for a viewport and I can set complex values (Dictionary object, List etc.) during page load as below:
code behind:
MyViewport.Set("MyCustomConfig", MyDictionary);
MyViewport.Set("MyCustomConfig", MyDictionary);
How can I re-set "MyCustomConfig" in a direct event call? MyViewport.Set("MyCustomConfig", MyDictionary) has no effect.
I tried using MyViewport.AddScript("App.MyViewport.MyCustomConfi g = {0};", MyDictionary) but it does not work.
Any idea?
Thanks.
Last edited by Daniil; May 22, 2013 at 3:52 PM.
Reason: [CLOSED]