I'm setting the default text in the radsearchbox serverside. how can I perform a automatic dropdown with search results of the radsearchbox?
is it possible to trigger the ondatarequest event with javascipt?
Thank you!
2 Answers, 1 is accepted
0
Boyan Dimitrov
Telerik team
answered on 12 Aug 2014, 11:33 AM
Hello,
Straight to your questions:
1. In order to show a filtered results in the drop down after you set the RadSearchBox text on the server I would suggest the following approach:
//JavaScript
<script type="text/javascript">
//Put your JavaScript code here.
function pageLoad() {
var searchBox = $find("<%= RadSearchBox1.ClientID %>");
2. Using the RadSearchBox client-side method _requestItems(text) as shown above will make a request to the server in order to retrieve the result set based on the text value set as parameter.
Regards,
Boyan Dimitrov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.