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

Notification

Icon
Error

Tooltip on widget header
porsonw
#1 Posted : Tuesday, February 07, 2012 3:19:55 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/21/2011(UTC)
Posts: 27
Location: UK

Thanks: 2 times
Hi,

Is it possible to put a custom tooltip on each widget header?

Thanks
berkay
#2 Posted : Tuesday, February 07, 2012 3:57:33 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)
You can show tooltip on buttons by using hint property. But you can't show tooltip on widget header.
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
porsonw
#3 Posted : Tuesday, March 27, 2012 1:35:53 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/21/2011(UTC)
Posts: 27
Location: UK

Thanks: 2 times
Hi Berkey,

thanks for the reply, I am wandering is it possible to override the minimize button function to only shows the tooltip but NOT minimize the widget?
Currently we are looking into how we can display a tooltip to describe the widget to the user on the dashboard page.

We are hoping to be able to display an icon (or icon gutton) with a question mark on the header of the widget and using Tooltip Extender to popup the tooltip.

Can you possibly help?

Also can you please instruct how to change the texts (locization) on the dashboard menu and icons tooltip texts please! i.e. 'Create Widget' to 'Add Widget' etc.

Thanks

Porsonw
berkay
#4 Posted : Tuesday, March 27, 2012 9:23:55 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)
first question :

you can set these properties by using properties of dashboard surface.

i.e. CreateWidgetsButtonText , ViewDashboardButtonText etc.

second question :

you can add custom tool command to your widget instance.

For Example,

1. please add the code block shown in below to your widgetcontrol that implements IWidgetControl.

Code:
   public void InitControl(WidgetInitParameters parameters)
        {
            surface = parameters.Surface;
            instance = parameters.Instance;
            ToolCommand cmd = new ToolCommand(instance.Type.InstanceKey);
            cmd.JsFunctionName = "trytest";
            cmd.CommandIcon = ToolCommandIcon.Up;
            cmd.Hint = "test";
            instance.ToolCommands.Add(cmd);
	}


2. please add a fake "trytest" js function to your page that contains dashboard surface.

Code:
 function trytest() { }; 



finally, you can show hint on your toolcommand and it never postbacks.

Regards.
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
porsonw
#5 Posted : Wednesday, March 28, 2012 11:13:21 AM(UTC)
Rank: Member

Groups: Registered
Joined: 11/21/2011(UTC)
Posts: 27
Location: UK

Thanks: 2 times
Hi Berkay,

Thanks you very much, its help a lot. Thanks.

Another question, is it possible to set the hint display time?
I would like it to display the hint longer on screen because as you know we use it to describe the widget to user and the hint may be in a slightly longer sentence.

Thanks

porsonw
berkay
#6 Posted : Wednesday, March 28, 2012 12:02:06 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 Porsonw,


sorry, there is no way to achieve this.

Regards.
Berkay ERKOY
Development & Support Team
www.dynamicdashboards.net
1 user thanked berkay for this useful post.
porsonw on 3/28/2012(UTC)
porsonw
#7 Posted : Wednesday, March 28, 2012 1:39:46 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/21/2011(UTC)
Posts: 27
Location: UK

Thanks: 2 times
Hi Berkey,

Thanks anyway

porsonw
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.092 seconds.