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

Forums / Developing with Sitefinity / Multiple sfLib:ButtonSelector doesn't work properly

Multiple sfLib:ButtonSelector doesn't work properly

5 posts, 0 answered
  1. MJia
    MJia avatar
    44 posts
    Registered:
    09 Jun 2009
    11 Jan 2011
    Link to this post
    I have made a customized module in sitefinity 3.7.
    It requires multiple library image selectors.  But when two selectors exist in one page, they both update the same textbox, I am sure the 'AssociatedControls' is set correctly.

    Here is the source code:

    <asp:TextBox ID="txtImage1" Text="" runat="server" CssClass="photoInput"></asp:TextBox>
    <sfLib:ButtonSelector ID="sfLibImage1" WindowNavigateUrl="~/Sitefinity/UserControls/Dialogs/ImageEditorDialog.aspx" ItemTemplatePath="~/Sitefinity/Admin/ControlTemplates/Events/Dialogs/ButtonSelector.ascx" AssociatedControls="txtImage1" runat="server" cssclass="pickerWrapper" ButtonText="Select" />
     
    <asp:TextBox ID="txtImage2" Text="" runat="server" CssClass="photoInput"></asp:TextBox>
    <sfLib:ButtonSelector ID="sfLibImage2" WindowNavigateUrl="~/Sitefinity/UserControls/Dialogs/ImageEditorDialog.aspx" ItemTemplatePath="~/Sitefinity/Admin/ControlTemplates/Events/Dialogs/ButtonSelector.ascx" AssociatedControls="txtImage2" runat="server" cssclass="pickerWrapper" ButtonText="Select" />

    The second selector suppose to update txtImage2 but it doesn't, instead it updates txtImage1 all the time.

    Can you help?

    Thanks.
  2. MJia
    MJia avatar
    44 posts
    Registered:
    09 Jun 2009
    11 Jan 2011
    Link to this post
    I found a post in the forum and it said this issue was solved by latest service pack.
    But I cannot find where to download SF3.7 SP4, can you let me know?

    Thanks.
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Jan 2011
    Link to this post
    Hello MJia,

    You are not allowed to download Sitefinity 3.x edition and actually so far you do not have a single download associated with your account. You can download and use only Sitefinity 4.0. If you want you can contact our sales department to enable slot for 3.x editions.

    Regards,
    Ivan Dimitrov
    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
  4. MJia
    MJia avatar
    44 posts
    Registered:
    09 Jun 2009
    11 Jan 2011
    Link to this post
    Hi, I've upgrade to Sitefinity 3.7 SP4, but the problem is still there, can you help?
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 Jan 2011
    Link to this post
    Hello MJia,

    Please send the code you use.

    All the best,
    Ivan Dimitrov
    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
Register for webinar
5 posts, 0 answered