logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Widget maximization and viewstate
Claudiano
#1 Posted : Wednesday, November 30, 2011 11:39:00 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/11/2011(UTC)
Posts: 4
Location: Italy

Hi all,
I've realized some custom widgets.
Each widget sends commands to the others and each widget saves received commands into the viewstate.

Everything works but, when I use the maximize command, the widget into the maximize aspx can't access to the viewstate with the commands received into the main page.

It's possible, from the maximize aspx, access to the "opener" page and then to its viewstate?
Which other technique I can use to persist the received commands instead the viewstate?

Thanks,
Claudio

berkay
#2 Posted : Wednesday, November 30, 2011 12:07:48 PM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/8/2011(UTC)
Posts: 168
Location: Turkey

Was thanked: 6 time(s) in 6 post(s)
Hello Claudiano,

Widget types have some settings for maximization. One of them is maximization mode. If you set this setting to external, DD opens your widget maximized in another page. So you can't access the wievstate of first page here.

Please try maximization mode "internal" and set force maximize settings "true".

if the issue still persists , please contact me.

Regards.
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
Claudiano
#3 Posted : Friday, December 02, 2011 10:20:20 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 10/11/2011(UTC)
Posts: 4
Location: Italy

Thank you Berkay,
I've already tried to set the maximization mode to "internal" (and it works well) but for some type of widgets (like chart widgets made by using Microsoft Chart) I need to know the size of the maximize page.

Yesterday, I found a solution to my problem using the session (so I can use the maximization mode set to external) but now I've another similar problem.

If my users enlarge a widget (dragging a side of the it) how I can know the new size?
For my project is a good solution also if an users must click on refresh button to see the new size.

Thank you,
Best Regards
Claudio
berkay
#4 Posted : Friday, December 02, 2011 10:30:08 AM(UTC)
Rank: Advanced Member

Groups: Registered, Administrators
Joined: 6/8/2011(UTC)
Posts: 168
Location: Turkey

Was thanked: 6 time(s) in 6 post(s)
hi claudiano,

you can get new size as shown in below.

public UpdatePanel[] Command(WidgetInstance instance, Framework.WidgetCommandInfo commandData, ref UpdateMode updateMode)
{
switch (commandData.CommandType)
{

case WidgetCommandType.Maximized:
{
var MaximizedWidth = int.Parse(commandData.Arguments["width"].ToString());
var MaximizedHeight = int.Parse(commandData.Arguments["height"].ToString());
return new UpdatePanel[] { UpdatePanel1 };
}
default: return null;
}

}

Regards.
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


This page was generated in 0.057 seconds.