I have created a custom calendar gadget where the HTML file has IFrame with the source from a Sharepoint page. The page contains only a calender (asp.net calendar rendered as webpart). The gadget is not showing previous/next month information when I click on the arrows, however If I open the HTML page individually its working fine.
Yes, no code. The arrows are part of asp.net calendar not IFrame, and it requires no code (inbuilt functionality of asp.net calendar) to navigate. I've created Sharepoint webpart using asp.net calendar control where the webpart has Dayrender event to highlight the days. The only server event is Dayrender event in this webpart, as I mentioned earlier, it has code to check the records in Database and highlight the days.
Ok, sorry - have been reading about the calendar control and am starting to understand...
So, I don't think there is anything the gadget can do to fix your problem.
But do the next and previous month links work in the gadget if you remove the Dayrender event ?
- Edited by mystifeid Monday, August 27, 2012 2:47 PM
Never mind, they don't work for me.
Links just aren't an option in iframes in gadgets (a link will try to open the page in your browser) and after playing with a calendar control it seems that none of the links in the calendar work either.
The only thing I can think of would be to absolutely position your own arrows on top of the iframe and try to use them to pass a new VisibleDate in a url parameter as a new src for the iframe. (see Request.Params)
- Edited by mystifeid Monday, August 27, 2012 4:57 PM