This is a migrated thread and some comments may be shown as answers.

Looking for a sample for custom command on RadDock

2 Answers 87 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Shane Grant
Top achievements
Rank 1
Shane Grant asked on 11 Jan 2010, 06:53 AM
Does anybody know where I might find a sample of how to add a customer RadDock Command button with something like a tooltip help box?

Basically we have different Docks on a page, and want to add a small help button that if the user clicks it will open a nice looking help "window" next to the button. It will have to be able to handle dynamically understanding where the edge of the screen is because sometimes the dock will be on the left side, sometimes on the right.

I am not asking for you to create this, was just hoping you might have a suggestion, or a sample you can point me to.

Thank you in advance.

2 Answers, 1 is accepted

Sort by
0
Shane Grant
Top achievements
Rank 1
answered on 11 Jan 2010, 06:59 AM
I forgot to mention that I would like to use a help icon of some sort if possible, I dont actually see a setting in the DockCommand to configure the image that is used.
0
Pero
Telerik team
answered on 12 Jan 2010, 02:03 PM
Hello Shane,

I have attached a sample project that shows how to set a custom image to a custom DockCommand.

Basically apply the following CSS class to the custom command and the image will be applied.

<style type="text/css">
    .MyCustomStyle
    {
        width: 19px;
        height: 19px;
        background: url(Icons/12X19/zoom_in.png) no-repeat !important;
    }
</style>
 


Greetings,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Dock
Asked by
Shane Grant
Top achievements
Rank 1
Answers by
Shane Grant
Top achievements
Rank 1
Pero
Telerik team
Share this question
or