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

Forums / Developing with Sitefinity / How to associate additional controls like dropdownlist and checkbox list to the current search functionaliy

How to associate additional controls like dropdownlist and checkbox list to the current search functionaliy

4 posts, 1 answered
  1. Shekar
    Shekar avatar
    35 posts
    Registered:
    11 Mar 2011
    11 Mar 2011
    Link to this post
    I want to add additional control like Dropdownlist and Checkboxlist to the current search functionality, so that the search criteria should consider the values selected in the Dropdownlist and checkboxlist and also the text entered in the search text box, how will I be able to do that?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Mar 2011
    Link to this post
    Hi Shekar,

    You can modify Sitefinity\ControlTemplates\Search\SearchBox.ascx. There you can implement your custom controls and send the data in the query string, so that it will be passed to SearchResults control.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
    Answered
  3. Shekar
    Shekar avatar
    35 posts
    Registered:
    11 Mar 2011
    14 Mar 2011
    Link to this post
    Thanks Ivan,

    I have added 2 controls on the searchBox.ascx file, but how to send these values in querystring, i am trying to do it with javascript but for this i need to enable the browser capability on each of the user machines. so just need a work around to implement the logic in the server side (ie) on the search button click event, rather than doing it on client side javascript. If you can provide me some sample code then it will be really helpful. Thanks again.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    15 Mar 2011
    Link to this post
    Hi Shekar,

    When you click the button you can get the url, make response.redirect and append the query string value to the url.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Register for webinar
4 posts, 1 answered