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

change view galleries text in toolbox

2 Answers 56 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Kidder
Top achievements
Rank 1
Kidder asked on 12 Nov 2012, 12:26 PM
Hi, 
how can i change or remove "view galleries" bottom of the toolbox?

2 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 15 Nov 2012, 09:23 AM
Hi Kidder,

You can edit the ControlTemplate of the RadDiagramToolbox and remove both elements you've indicated. However, there is one other approach that you can use in case you don't want to edit the entire ControlTemplate of the toolbox. The button right next to the 'ViewGalleries' text has a predefined style which you can control through the RadDiagramToolbox.OpenCloseButtonStyle property. This is why you can create a custom style for that button that sets the Visibility of the button to Collapsed.

Next, the 'ViewGalleries' text is displayed in a TextBlock element of the RadDiagramToolbox.ControlTemplate, which Text value is controlled through a LocalizaitonManager. This is why you can create a custom LocalizationManager class that defines an empty string for the Text value of the TextBlock in question.

I attached a sample solution to demonstrate this approach. Please have a look at it and let me know if it helps.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Kidder
Top achievements
Rank 1
answered on 15 Nov 2012, 01:47 PM
Thank you very much.. 

public override string GetStringOverride(string key)
        {
            if (key == "Toolbox_ViewGalleries")
                return string.Empty;
            else
                return base.GetStringOverride(key);
        }
Tags
Diagram
Asked by
Kidder
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Kidder
Top achievements
Rank 1
Share this question
or