calendar help

  • Thread starter Thread starter RJN
  • Start date Start date
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
 
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...
 
Back
Top