Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to set focus after Data bound calendar

Status
Not open for further replies.

suec032a

Programmer
Jun 22, 2009
20
AU
I have a grid that displays 3 fields, start date, end date and number of days. For each record, the full booking information, including these 3 fields are displayed in the lower part of the same form. I have used the monthview data bound calendar, as described in the solutions examples, as a basis to allow the user to select dates in the same form, but I need to set the focus to another field once I have selected the date from the calendar.

At present, when I select a date, the text field is updated using the refresh() from the calendar, but the focus then goes back to the record in the grid. I need this to go to the next field in the lower part of the form.

I changed the original example and created a form with the calendar object, but instead of creating the objects on the fly, I call the form from the calendar commandbutton.

I am lost as to where I can call this setfocus().

Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top