I'm having a problem trying to set a module to disabled but allowing it to still be in the module list so that users can turn it on if they want. The code I'm using is as follows:
The problem seems to relate to setting the visible property to true but the enabled property to false. When I do this I get the following javascript error:
Sys.InvalidOperationException: 'enabled' is not a property or an existing field.
When i get this error, the modules don't show up in the dropdown, and I get javascript errors when I click on it as well.
If I also set the visible property to false, there are no errors but then I don't get the desired functionality. What I want is for the modules to be initially disabled but show up in the list for users to enable if they want.
If anyone has any suggestions or solutions, i would greatly appreciate it.
Thanks,
Reinan
| <telerik:RadEditor ID="contents" runat="server" Content='<%# Bind("contents") %>'> | |
| <Modules> | |
| <telerik:EditorModule Name="RadEditorStatistics" Visible="true" Enabled="true" /> | |
| <telerik:EditorModule Name="RadEditorDomInspector" Visible="true" Enabled="false" /> | |
| <telerik:EditorModule Name="RadEditorNodeInspector" Visible="true" Enabled="false" /> | |
| </Modules> | |
| </telerik:RadEditor> | |
The problem seems to relate to setting the visible property to true but the enabled property to false. When I do this I get the following javascript error:
Sys.InvalidOperationException: 'enabled' is not a property or an existing field.
When i get this error, the modules don't show up in the dropdown, and I get javascript errors when I click on it as well.
If I also set the visible property to false, there are no errors but then I don't get the desired functionality. What I want is for the modules to be initially disabled but show up in the list for users to enable if they want.
If anyone has any suggestions or solutions, i would greatly appreciate it.
Thanks,
Reinan
