More in this section

Forums / Bugs & Issues / Error in Image selector

Error in Image selector

2 posts, 0 answered
  1. Alex
    Alex avatar
    2 posts
    17 Jun 2009
    28 Jul 2009
    Link to this post

    I have add new metafield to News module named 'BigThumbnal' and coresponding controls to NewsItemEdit.ascx and NewsItemNew.ascx control as shown here:



                                    <li class="selector">  
                                        <asp:Label ID="Label2" AssociatedControlID="Thumbnail" runat="server">  
                                            <asp:Literal ID="Literal25" runat="server" Text="<%$Resources:Thumbnail %>"></asp:Literal> 
                                            <em id="ThumbnailLabel" runat="server"></em></asp:Label> 
                                        <asp:TextBox ID="Thumbnail" Text="" runat="server" MaxLength="250"></asp:TextBox> 
                                        <sfLib:ButtonSelector ID="ButtonSelector1" WindowNavigateUrl="~/Sitefinity/UserControls/Dialogs/ImageEditorDialog.aspx" AssociatedControls="Thumbnail" ItemTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/Dialogs/ButtonSelector.ascx" runat="server" cssclass="pickerWrapper" ButtonText="<%$Resources:Select%>" /> 
                                            <asp:Literal ID="Literal26" runat="server" Text="<%$Resources:ThumbnailNote %>"></asp:Literal></p>  
                                    <li class="selector">  
                                        <asp:Label ID="Label9" AssociatedControlID="BigThumbnail" runat="server">  
                                            <asp:Literal ID="Literal3" runat="server" Text="Big Thumbnail"></asp:Literal> 
                                            <em id="BigThumbnailLabel" runat="server"></em></asp:Label> 
                                        <asp:TextBox ID="BigThumbnail" Text="" runat="server" MaxLength="250"></asp:TextBox> 
                                        <sfLib:ButtonSelector ID="ButtonSelector2" WindowNavigateUrl="~/Sitefinity/UserControls/Dialogs/ImageEditorDialog.aspx" AssociatedControls="BigThumbnail" ItemTemplatePath="~/Sitefinity/Admin/ControlTemplates/News/Dialogs/ButtonSelector.ascx" runat="server" cssclass="pickerWrapper" ButtonText="<%$Resources:Select%>" /> 

    but while selecting Big Tumbnail I found it amends Thumbnail field, not corresponding BigThumbnail. If Thumnail was already selected then Big Thumbnail selector shows that (not own but from another control!) image, and not 'Insert new image' dialog. Please can you correct this error.

    Thank you

    Alexander Resnik





  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    28 Jul 2009
    Link to this post
    Hi Alex,

    It is a problem in ButtonSelector that we found a few months ago. Currently the issue is not fixed. The problem appears when using multiple selectors in one template. Then the button selector cannot find the related TextBox control id and sets the value to AssociatedControls="Thumbnail".  As a work around you can take a look at the following KB How to associate content items with files  and implement additional selector for the view.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered