I just wanted to be able to have all of the text selected when the user clicks inside the input box. The WebTextEditor has a property that makes this easy, but couldn't find anything built into the WebDropDown that could accomplish this... even with the CSOM.
This bit of code does the trick:
<script type="text/javascript" id="igClientScript1"><!-- function wddRouteBookID_Focus(sender, eventArgs) { ///<summary> /// ///</summary> ///<param name="sender" type="Infragistics.Web.UI.WebDropDown"></param> ///<param name="eventArgs" type="Infragistics.Web.UI.DropDownControlEventArgs"></param> sender._elements.Input.select(); }// --> </script>
function wddRouteBookID_Focus(sender, eventArgs) { ///<summary> /// ///</summary> ///<param name="sender" type="Infragistics.Web.UI.WebDropDown"></param> ///<param name="eventArgs" type="Infragistics.Web.UI.DropDownControlEventArgs"></param>
sender._elements.Input.select(); }// --> </script>
Not crazy about using one of the internal functions, but it is the only way I could figure how to do this.
Hello Rob,
Thank you for posting this.
Currently I am aware only of this way to achieve the funtionality.
Please refer to the below forum post discussing the same.
http://forums.infragistics.com/forums/p/46188/248780.aspx#248780
Thank you very much Tsvetelina!I really don't like using an unsupported internal function. Is there any chance that IG might add a supported function?It seems to me that many developers like myself would want to use this behavior frequently, and maybe as the default.
Thanks,
-Rob