Search Context

2 posts, 1 answers
  1. Jason Bourdette
    Jason Bourdette avatar
    77 posts
    Member since:
    Jan 2010

    Posted 15 Oct 2015 Link to this post

    How could i get the search context menu to render on the right hand side of the search box, verses the left side as it does by default.?


  2. Answer
    Ivan Danchev
    Ivan Danchev avatar
    1265 posts

    Posted 20 Oct 2015 Link to this post


    You can move the SearchContext to the right of the search button with jQuery as shown below, however have in mind that such customization is not recommended and not supported and might lead to appearance issues as the control is not designed to render the SearchContext to the right hand side.
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    <script type="text/javascript">
        function OnClientLoad(sender) {
        <telerik:RadSearchBox ID="RadSearchBox1" runat="server" Width="500" DropDownSettings-Height="200px"
            DataTextField="ProductName" DataValueField="ProductID" DataContextKeyField="SupplierID" OnClientLoad="OnClientLoad">
            <SearchContext DataSourceID="SqlDataSource2" DataTextField="ContactName" DataKeyField="SupplierID">

    Ivan Danchev
    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 Feedback Portal and vote to affect the priority of the items
Back to Top