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

Notification

Icon
Error

Widget Collapsed
knm
#1 Posted : Wednesday, December 21, 2011 9:16:16 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/21/2011(UTC)
Posts: 1
Location: India

hi
While collapsing the widget i can get the display order of the widget which is collapsed. but i want to get the display order of widget which is not dragged by me.
For example i having 4 widgets(let A,B,C,D). During the initialization the display order is
A-1, B-2, C-3 & D-4. Now i dragged the widget "D" to place it in the 1 place, so that i can save the display order for D using the property "widget.collapse". Now the other widgets will be moved to next display order(A-2,B-3,C-4). How can set the display order for the widget which is not dragged that is A,B,C.

Thanks & Regards
Karunakaran M
berkay
#2 Posted : Wednesday, December 21, 2011 11:05:06 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 Karunakaran,

you can get all widgets in dashboard by calling GetWidgets method of surface.
then you can set Position of Widget Instance shown below.

Code:

  var widgets = surace.GetWidgets();
            foreach (var widget in widgets)
            {
                // you should check  widget that you want to set position of it
                //if( widget.Instance.RowKey == .....)
                // then you can set the new position
                // widget.Instance.Position = .......
                
            }


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.039 seconds.