Looking for a sample for custom command on RadDock

3 posts, 0 answers
  1. Shane Grant
    Shane Grant avatar
    20 posts
    Member since:
    Dec 2009

    Posted 11 Jan 2010 Link to this post

    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. Shane Grant
    Shane Grant avatar
    20 posts
    Member since:
    Dec 2009

    Posted 11 Jan 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 12 Jan 2010 Link to this post

    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.
Back to Top