| <tools name="fullEditorToolSet2" visible="false"> |
| <tool separator="true" /> |
| <tool name="Undo" /> |
| <tool name="Redo" /> |
| <tool separator="true" /> |
| </tools> |
| <tool name="Undo" visible="false"/> |
| editor.AttachEventHandler( |
| "onfocus", function() { .......}); |
is throwing a javascript error saying object dosenot suppot this property.(I am working on the lates editor release)
3.I tried implementing this way....I already have 2 custom button and the event created for it. So I am trying to do some thing like this
| Telerik.Web.UI.Editor.CommandList["AdvancedTools"] = function(commandName, editor, args) { |
| var tool = editor.getToolByName("Paste"); |
| tool.set_visible(true); |
| var tool = editor.getToolByName("ImageManager"); |
| tool.set_visible(true); |
| var tool = editor.getToolByName("FlashManager"); |
| tool.set_visible(true); |
| var tool = editor.getToolByName("MinTools"); |
| tool.set_visible(true); |
| var tool = editor.getToolByName("AdvancedTools"); |
| tool.set_visible(false); |
| } |
| Telerik.Web.UI.Editor.CommandList["MinTools"] = function(commandName, editor, args) |
| { |
| var tool = editor.getToolByName("Paste"); |
| tool.set_visible(false); |
| var tool = editor.getToolByName("ImageManager"); |
| tool.set_visible(false); |
| var tool = editor.getToolByName("FlashManager"); |
| tool.set_visible(false); |
| var tool = editor.getToolByName("MinTools"); |
| tool.set_visible(false); |
| var tool = editor.getToolByName("AdvancedTools"); |
| tool.set_visible(true); |
| } |
Show Advanced tools are working fine but when i minimize the tools there is a gap and seperators displayed(its just hiding the tool and so the space is left as such) and I am not able to hide the tool seperator also.
Also I need some way to hide the tools(by default) when I load the editor first time.
Or Is there a way to change the tool file(XML) for the editor on the client side based on the toggling? so that I can create 2 files and toggle between those.
Can any one please help me?
Thanks,
Akila.
| <telerik:RadComboBox ID="AreaOfInterestComboBox" runat="server" AutoPostBack="false" CssClass="areaOfInterestComboBox" Skin="Bazaar" EnableEmbeddedSkins="false" OnDataBound="AreaOfInterestComboBox_ItemDataBound"> |
| <ItemTemplate> |
| <asp:CheckBox runat="server" ID="cbCategory" Text="" AutoPostBack="false" onclick="stopPropagation(event);" /> |
| <%# DataBinder.Eval(Container, "Text") %> |
| </ItemTemplate> |
| </telerik:RadComboBox> |
| protected void AreaOfInterestComboBox_ItemDataBound(object sender, Telerik.Web.UI.RadComboBoxItemEventArgs e) |
| { |
| } |