| Page 1 of 1 | [ 2 posts ] |
|
Hi,
I have create a calendar group with the normal defaults: ========= YAHOO.example.calendar.init = function() { YAHOO.example.calendar.cal1 = new YAHOO.widget.CalendarGroup("cal1","cal1Container", { pagedate:"3/2006" } ); cal=YAHOO.example.calendar.cal1; ============= I want to highlight certain cells, easy using cal.addRenderer("4/4/2006", cal.renderCellStyleHighlight1); Now for the problem I cant hard code them, I use an asyncRequest to obtain a list of dates Then in the onSuccess loop through the list and call: cal.addRenderer(rtnDate, cal.renderCellStyleHighlight1); This works fiine for any month not being displayed and when I navigate to it, all the dates are as they should be, now for the problem the cal group opens with 2 months showing. If I add any high lights to them, they do not display. I'm guessing this is because the cal rendered itself before the asyc finished. If I navigate away from the initial months and come back they are fine and show the highlights. So I need a way to tell the calendar, your data has changed redraw. I've tried calling cal.render() but that either does nothing or resets everything. Any ideas ? Many Thanks Jeff. |
|
View my other topic on Calendar and Async Data, it may help
|
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group