+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Issue in Image selector

Issue in Image selector

4 posts, 0 answered
  1. Nimit
    Nimit avatar
    90 posts
    Registered:
    27 Mar 2009
    23 Nov 2009
    Link to this post
    Hi,
    I made a user conrol that has a facility to select the image from Image library and my code for that is

    [

    DisplayName("Additional Image 1")]

     

    [Telerik.Cms.Web.UI.

    WebEditor("Telerik.Libraries.WebControls.ImageSelector, Telerik.Libraries")]

     

    Now, my issue is I want user to select only from "Image and document library" not from "File", but with the code above it gives both option. So, how can I hide th Files option.

    Please reply ASAP,

    Regards,
    Nimit Verma.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    23 Nov 2009
    Link to this post
    Hi Nimit,

    Open Sitefinity\Admin\ControlTemplates\Libraries\Dialogs\ItemSelector.ascx and set the files tab property Visible of RadTabStrip control to false;

    <telerik:RadTabStrip ID="tabStripItems" runat="server" MultiPageID="multiPageImages" EnableEmbeddedSkins="false" Skin="SitefinityDialogs">
        <Tabs>
            <telerik:RadTab Value="pagesTab1" PageViewID="pagesTab" runat="server" Text="Pages"></telerik:RadTab>
            <telerik:RadTab Value="librariesTab" PageViewID="pageViewLibraries" runat="server" Text="<%$Resources:Libraries %>"></telerik:RadTab>
            <telerik:RadTab Value="filesTab" Visible="false" PageViewID="pageViewFiles" runat="server" Text="<%$Resources:Files %>"></telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Nimit
    Nimit avatar
    90 posts
    Registered:
    27 Mar 2009
    23 Nov 2009
    Link to this post
    Hi Ivan,
    Thank you for your email.
    Can I ask you one thing.
    If I do the same you told me to do, will hide the "Files" Option from all the Image selector like in the Generic Content Control where we insert image.
    If yes is there a possibility to Hide the "Files" option only for a particular user Control.

    Please reply ASAP.
    Regards,
    Nimit Verma.
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    24 Nov 2009
    Link to this post
    Hello Nimit,

    Please, take a look at the following blog post: Creating a custom WebUITypeEditor. You can follow instructions there. However you already have the template and its code behind - the edited ItemSelector.ascx file.

    Regards,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
4 posts, 0 answered