aspx:UpcomingEvents
This component displays a list of upcoming events.
<aspx:UpcomingEvents runat='server' scope='This_Week' />
Properties:
| Name | Comments |
|---|
| CategoryId | Optional, the Upcoming Event ID, limits the list of events to a specific category. |
| ItemCssClass | Style CSS Class of each Event item in the list. |
| ItemRenderer | Optional, name of a JavaScript function that would be used to take control over the look and feel of the component and display the information in a custom way. |
| Scope | Required, a time-range that defines which events should be displayed to users.
Possible values are:
- Today
- Tomorrow
- This_Week
- Next_Week
- Next_Month
- Next_7_Days
- Next_14_Days
- Next_30_Days
- Next_60_Days
- Next_90_Days
|
| Size | Number of events to be displayed. Default is: 5. It is recommended to select a value between 5 and 20. |
The example below shows how you can perform custom rendering of the data:
<aspx:UpcomingEvents runat='server' scope='This_Week' itemRenderer='customEventRenderer'/>
<script>
function customEventRenderer(target,data){
// event records are passed to the renderer one at a time.
$(target).append("<p>{0}</p>".format(data.Name));
}
</script>