calendar help

R

RJN

Hi

I have a calendar control and a dropdown in the page. Drop down has the
list of all months. When the user either selects a date from a calendar
or selects a month from the dropdown , I need to populate the grid.
Suppose the user selects a month from dropdown, then I also need to
change the selected month in the Calendar. Say the current month shown
in Calendar is March, user selects July from dropdown, then I need to
change the month to July in Calendar also. Can I bind the
selectedchangedevent of dropdown to SelectedMonthChanged even of
calendar control?

Thanks

rjn
 
C

Craig Deelsnyder

Hi

I have a calendar control and a dropdown in the page. Drop down has the
list of all months. When the user either selects a date from a calendar
or selects a month from the dropdown , I need to populate the grid.
Suppose the user selects a month from dropdown, then I also need to
change the selected month in the Calendar. Say the current month shown
in Calendar is March, user selects July from dropdown, then I need to
change the month to July in Calendar also. Can I bind the
selectedchangedevent of dropdown to SelectedMonthChanged even of
calendar control?

Thanks

rjn

Well, not automatically...you'll have to add the code to tie the 2
together. You'll have to have the ddl event call the calendar event, and
vice versa, when either of them occurs. However, you'll also need to use
a flag of some sort to indicate which event originally occurred, so you
don't get in an infinite loop...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top