Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I have a Ajax Control Tookit Date Picker on a web form. The control works as desired when clicking i.e. the calendar closes once a date is selected or if the user clicks another field.

Unfortunately if you Tab to the next input field, the Date Picker stays open obscuring the controls. The JQuery equivalent will close as soon as the input field or date picker control loses focus.

I'm not very javascript savvy, the only hack solution I can think of is to add an onfocus event to the next field that hides the div that the Data Picker control is rendered in.

Something like this...
nextTextBox.Attributs.Add("onfocus", "document.getElementById('datepickerdiv').style.display = 'none'");

Any other solutions or fixes are much welcomed.

Thanks
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900