Welcome Guest Search | Active Topics | Sign In | Register

Calendar with flyout Options
Abacus Financial Inc.
Posted: Thursday, November 6, 2014 3:13:12 PM
Rank: Member
Groups: Member

Joined: 11/26/2010
Posts: 26
Hello,

Is there any way to implement a flyout with a calendar? We're using a large, "scheduler"-like calendar and the users would like to see a summary of events when they mouse over a particular day (if the day has one or more events, of course).
The challenge I'm facing is linking the "Day" cell with the flyout's "For" property.

I can probably explore the RenderHtml route but I would like to avoid that, if possible.

Thanks!
Abacus Financial Inc.
Posted: Saturday, November 8, 2014 1:43:39 PM
Rank: Member
Groups: Member

Joined: 11/26/2010
Posts: 26
Bump...
eo_support
Posted: Sunday, November 9, 2014 11:18:35 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

If you are considering using Flyout on the Calendar days, first you will need to handle the Calendar's DayRender event and make sure you generates a unique id for each cell. You must do this because the Flyout has to be associated to an "id" (the For property) and by default only the Calendar has an id but the cell does not have any id. The following HTML demonstrates the goal of this step. For example, the default HTML for day "5" can be something like this:

Code: HTML/ASPX
<td>
    5
</td>


You will need to handle DayRender event to change it something to:

Code: HTML/ASPX
<td>
   <div id="day5">
      5
   </div>
</td>


Note the new "id" attribute added here.

Once you complete this step, you will need to programmatically generate a list that includes all the ids you generated in your DayRender event and assign that to your Flyout control. For example, if you want to assign Flyout to all days that has an "event" and you only has three "event days", then your can assign For property to "day5,day7,day11". The key is the IDs you assigned to the For property must match the IDs that you generated in your DayRender event.

Hope this helps. Please feel free to let us know if you still have any questions.

Thanks!

Abacus Financial Inc.
Posted: Sunday, November 9, 2014 3:18:58 PM
Rank: Member
Groups: Member

Joined: 11/26/2010
Posts: 26
That's exactly how I ended up implementing it, thanks. Too bad that "Day" is not a Container and you can't add controls to it.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.