...
Name | Description |
activityname | The name of the activity on the server to map to. Falls back to name attribute if not found. |
activitystyle | The style of the activity to pass to the server. |
key |
|
keepopenforsession | By default, the activities will remain open on server, even after you navigate away from them. The SDK doesn’t close them by default, as it’s not unusual to navigate away from an activity and then back to it in an HTML application. In addition, you don’t want the activity to be closed when simply refreshing the page in the browser. However, you can change this behaviour by setting the keepopenforsession attribute on the activity element to false.
Note that this attribute currently has no effect on activities opened in popup windows – closing a popup window will always close the corresponding activity on the server. |
optimise | Field optimisation helps minimise the amount of data returned by the server. The fields used by a page will be sent to the server when creating an activity. The server will then only send the values for these fields back to the client in the response, rather than all the fields in the activity. By default, field optimisation is turned on, but you can turn it off by setting this attribute to false. |
autoLoad | Any activities with this attribute set to false will not automatically be loaded by the SDK when the page loads. This is particularly useful when additional content for the activity is to be downloaded from the server before fields, methods, etc can be bound. |
allowanonymous | Setting this attribute to true will enable the user to access this activity without having to log in first. |
dofullserverrepublish | When set to true, sends the newUI=1 attribute to the server when the activity is created. Required when you have two or more pages that map to the same activity/style combination in your application, and you’re using field optimisation. Normally, when navigating to an activity that had previously been opened, the server will just republish the fields / data publications that had been requested previously, ignoring the optimised field list passed to it. This becomes a problem when different pages using the same activity/style combination require different fields / data publications from the server. This flag tells the server not to ignore the optimised field list being passed to it. |
pollmethod | The name of a method to call on the activity at a regular interval (specified by the pollinterval attribute, by default every 60 seconds), used to poll the server for any new data |
pollinterval | The interval (measured in seconds) at which the pollmethod method should be called on the server. Default value is 60 seconds. |
ContextMenuView
The ContextMenuView control displays a context menu to the user, enabling them to select from a list of menu items. Note that the built in functionality is quite a minimal implementation, and probably not suitable for production use. However, if you choose to use them, the KendoUI adapters will override the default implementation and provide a much more functional context menu, with no configuration required to enable them.
...
Name | Description |
dataid | An id used to identify the data publication to the server. If not supplied, the SDK will look for an id attribute, then a name attribute, then a query attribute, and finally a populatemethod attribute to use instead. |
query | The name of a query to be used to populate the dropdown list with items (optional). |
populatemethod | The name of a method to be used to populate the dropdown list with items (optional). |
contextobject | The context object to pass to the server for the data publication. |
autopopulate | You can tell the server to not automatically return items for this data publication by setting the autopopulate attribute to false. |
anonymousboundmethod | The anonymous method to call to populate the list. Note: Don’t have a working example to demonstrate or confirm working. |
class |
|
candrilldown | This will turn the first cell of every row into a hyperlink (except for totals rows, blank rows, and rows where drill down has explicitly been turned off). By default, when a drill down hyperlink has been clicked, the SDK will raise a datapublication:rowDrillDown event on the data publication control. If this event is not marked as handled, it will simply set the context on the server to this row. |
drilldownpage | When the drilldownpage |
itemtemplatename | The id of the text template on the page that will be used to customise the rendering of the items in the data publication. If not provided, the SDK will search for a template consisting of the dataid suffixed with “ItemTemplate”. If neither are found, the data publication control will simply implement its default rendering. |
headertemplatename | The id of the text template on the page that will be used to customise the rendering of the header of the data publication. If not provided, the SDK will search for a template consisting of the dataid suffixed with “HeaderTemplate”. If neither are found, the data publication control will simply implement its default rendering. |
itemsperpage | If this attribute is provided, it will turn on client-side paging for the data publication, limiting it to displaying only the given number of items at a time. |
noitemstext | A message to display if no items were returned by the server. |
sortable | Whether the automatically generated column headers will be sortable. Defaults to true. Note that this will have no effect on data publications which use a custom header template – you will need to apply the sortField attribute to column header elements with the name of the field. |
Events Raised
datapublication:publishData – raised when data has been published to the control, prior to any rendering.
...