SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For Calendar List - web part connections doesn't work and query string doesn't work. So I am out of options here.

Can any one guide me to how to filter the calendar list data in calendar.aspx.

I am open to any solution - JQuery, Visual Studio, 3rd party tools like Bamboo or any other.

Any help is greatly appreciated.


share|improve this question
What are you trying to display? Can you create static filtered calendar views (with dynamic date filtering based on [Today]) and use those? – Eric Alexander Apr 16 '12 at 18:33

I have a built a web part which has a drop down and button, which I added in calendar.aspx of the calendar list. In the button click event I have added the following code. I am just passing the drop down selected value to the SPView CAML Query. This works fine.

Please let me know if there is a better way.

SPList oList = oSite.Lists["CustomCalendar"]; SPView oView = oList.Views["Calendar"]; oView.Query = "" +[Dropdown Selected Value]+ " "; oView.Update(); Reference:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.