Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

Thanks.

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

1 Answer 1

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: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spview.query.aspx

share|improve this answer

Your Answer

 
discard

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.