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

Rad Editor - Image Manager - Properties- disable

3 Answers 198 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Em4o
Top achievements
Rank 2
Em4o asked on 15 Jul 2010, 07:42 AM
Hi,
How can i disable "Properties" tab in rad editor, after opening Image Manager and choosing some picture?
I want to resize the picture only from Image Editor, i don't want user to modify the image with Properties tab?
is this possible?

3 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 15 Jul 2010, 08:04 AM
Hi Emin,

Please follow the steps below to achieve your scenario:

1) Register the external dialogs paths of RadEditor as shown in this demo: Customize Built-in Dialogs.
2) To hide the Properties tab open the \EditorDialogs\ImageManager.ascx file and set Visible="False" in the
<telerik:RadTab Text="Properties" Visible="false" Value="Properties" /> inner tag of <telerik:RadTabStrip> control.
This will hide the Properties tab.

Kind regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Em4o
Top achievements
Rank 2
answered on 15 Jul 2010, 08:21 AM
Ok. Thank you very much.
Is it possible to handle this property with javascript and make visibility to hidden?
0
Rumen
Telerik team
answered on 15 Jul 2010, 04:24 PM
Hi Emin,

You can hide the Properties tab using the Client-side API of RadTabStrip, e.g.

<telerik:RadTabStrip ID="imageTabStrip" OnClientLoad="OnClientLoad"  Width="100%" runat="server" Orientation="HorizontalBottom" ShowBaseLine="true"
    MultiPageID="imageMultiPage">
    <Tabs>
        <telerik:RadTab Text="Preview" Value="Preview" Selected="true" />
        <telerik:RadTab Text="Properties" Value="Properties" />
    </Tabs>
</telerik:RadTabStrip>
 
<script type="text/javascript">
    function pageLoad(sender, args) {
        var tabStrip = $find("imageTabStrip");
        tabStrip.findTabByText("Properties").set_visible(false);
    }
</script>



Best regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Em4o
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Em4o
Top achievements
Rank 2
Share this question
or