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

get_items()

1 Answer 56 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sherry
Top achievements
Rank 1
Sherry asked on 06 Oct 2011, 12:12 AM
Hi,
I am trying to find an item within the toolbar so i can hide it. I have seen the forums and tried this line of code

edit.get_toolAdapter().getToolByName("MainToolbar").get_Items()

it says 'Unable to get value of the property 'get_Items': object is null or undefined'

Am i missing a reference ?


Also is there any default ToolsFIle.xml which i could possibly edit?

Cheers
Sherry
SB

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Oct 2011, 10:08 AM
Hello Sherry,

You can use the following syntax to hide for example the Bold button:

edit.get_toolAdapter().getToolByName("Bold").get_element().style.display = "none";

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
Sherry
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or