Approved
Last Updated: 15 Feb 2018 08:29 by ADMIN
ADMIN
Plamen
Created on: 06 Dec 2013 09:41
Category: SearchBox
Type: Feature Request
6
Add client event "ItemSelect" for the SearchContext in RadSearchBox

		
3 comments
ADMIN
Peter Milchev
Posted on: 15 Feb 2018 08:29
A possible workaround would be subscribing to the selectedIndexChanged event of the search context dropdown. This can be done in the OnClientLoad event of the SearchBox: 

function OnClientLoad(sender, args) {
    var context = sender.get_searchContext();
    var $ = $telerik.$;
    $(context).on({
        "selectedIndexChanged": function (event) {
            var searchbox = $find("<%= RadSearchBox1.ClientID%>");
            // this is the search context dropdown selectedIndexChanged event handler 
        }
    });
}
Albert Shenker
Posted on: 25 Dec 2015 18:06
ummm. yah. Why a dropdownlist control was released without a client Item selected (and perhaps selecting) handler is beyond me.
Ercan
Posted on: 13 Aug 2014 10:34
I want a ItemChange event, because i will change the DataSource for RadSearchBox according to which Item is selected.

Best Wishes,
ED