We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DropDownList Filter Search Focus

Thread ID:

Created:

Updated:

Platform:

Replies:

124821 Jul 1,2016 11:41 AM UTC Jul 4,2016 09:38 AM UTC ASP.NET Web Forms 1
loading
Tags: DropDownList
Pratura
Asked On July 1, 2016 11:41 AM UTC

Hi,

is there a way to dynamically set focus to the filtersearch textbox when it's set to true?


Thank you  

Kasithangam C [Syncfusion]
Replied On July 4, 2016 09:38 AM UTC

Hi Pratura, 
 
Thanks for using Syncfusion Products. 

Yes, we can set focus to the filtersearch textbox by overwrite the popupShown function as shown below code: 

<code> 
<script> 
        $(function () { 
            var obj = $("#<%=selectCar.ClientID%>").data("ejDropDownList"); 
            var srcFunction = obj._OnPopupHideShow; 
             obj._OnPopupHideShow = function (e) { 
                //This is the overwrite popupshown function and set focus to the filtersearch textbox in dropdown 
 
                srcFunction.call(this, e); 
  $(obj.inputSearch).focus();             
} 
        }); 
    </script> 
</code> 

It will set focus when the popup is opened. We have prepared the sample based on this and please find the sample from the following location: 

Sample: Sample 
Please let us know if you have further query. 
Regards, 
Kasithangam 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;