Hi
I want to set focus to my WebDateChooser control "wdcStartDate".
i tried the below code
document.getElementById("wdcStartDate").focus();
ig_controls.wdcStartDate.setFocus();
but i'm getting the value as undefined or the ig_controls is undefined/not found. I need a fix for it .
Thanks Micheal
That worked...!!
Hello x x,
Thank you for posting in our forums!
You can get an instance of the WebDateChooser with the igdrp_getComboById() method. You can find more information on this method in our documentation here:
http://help.infragistics.com/Doc/ASPNET/2011.1/CLR4.0/?page=WebDateChooser_Utility_Functions_CSOM.html
Once you have an instance of the WebDateChooser with the above method, you can call .focus() on it. You can find more information on the available WebDateChooser methods here:
http://help.infragistics.com/Doc/ASPNET/2011.1/CLR4.0/?page=WebDateChooser_Object_CSOM.html
The following code should get you the result you are looking for:
var chooser = igdrp_getComboById("wdcStartDate");chooser.focus();
If you need any further assistance with this, please let me know.