Telerik.Sitefinity.Web.UI gone in 4.1
My master page has a Telerik.Sitefinity.Web.UI.SearchBox control and it no longer works.
What's the alternative now?
Hello thelyrist,
Can you provide some more description about this issue "Telerik.Sitefinity.Web.UI.SearchBox control and it no longer works"
Best wishes,
Ivan Dimitrov
the Telerik team
I built my template to include a custom Search Box as the client didn't like the default look and feel. I found the code in the forum but I can't seem to locate it anymore.
I have the following defined in my template.
<sitefinity:SearchBox id="searchBox" runat="server" UseSearchButton="true" ClientIDMode="Predictable" LayoutTemplatePath="~/App_Data/Sitefinity/WebsiteTemplates/clientSite/WidgetTemplates/SearchBox/search-box.ascx"></sitefinity:SearchBox><%@ Control Language="C#" AutoEventWireup="true" CodeBehind="search-box.ascx.cs" Inherits="SitefinityWebApp.search_box" %> <%@ Register TagPrefix="sitefinity" Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" %> <script> function goSearch() var searchBox = document.getElementById("searchBox_ctl00_ctl00_searchBox"); if (searchBox != null) if (searchBox.value == '') alert('Please enter your search term.'); else window.location = '/search?indexCatalogue=site%2Dsearch&&wordsMode=0&searchQuery=' + searchBox.value; </script> <div id="applesearch"> <div class="floatLeft"> <span class="sbox_l"></span> <span class="sbox"><asp:TextBox ID="searchBox" runat="server" CssClass="sfsearchTxt" /></span> <span class="sbox_r" id="srch_clear"></span> </div> <div class="floatRight"> <asp:ImageButton ImageUrl="~/images/search-button.png" runat="server" OnClientClick="goSearch();return false;" /> <asp:LinkButton id="searchButton" runat="server" Text="Search" OnClientClick="return false;" CssClass="sfsearchSubmit" Enabled="false" Visible="false"></asp:LinkButton> </div> <div style="clear"> </div> </div>Hi Thelyrist,
Can you please try using the following namespace: Telerik.Sitefinity.Services.Search.Web.UI.Public and let us know if any problems persist?
Best wishes,
Boyan Barnev
the Telerik team