Resource Navigation Services
The IResourceNavigationService interface in the XtraScheduler provides means for resource control and navigation. It has the following delegates:
- int ResourcePerPage { get; set; }
- int FirstVisibleResourceIndex { get; set; }
- void GoToResource(Resource resource);
- void GoToResourceById(object resourceId);
- void NavigateFirst();
- void NavigateLast();
- void NavigateForward();
- void NavigateBackward();
- void NavigatePageForward();
- void NavigatePageBackward();
- bool CanGoToResource(Resource resource);
- bool CanGoToResourceById(object resourceId);
- bool CanNavigateFirst();
- bool CanNavigateLast();
- bool CanNavigateForward();
- bool CanNavigateBackward();
- bool CanNavigatePageForward();
- bool CanNavigatePageBackward();
You can get the IResourceNavigationService as described in Introduction to Services document, use it, or substitute your own custom descendant.
However, the simplest technique to use the Resource Navigation service is to get access to its properties and methods via the property wrapper, as illustrated below:
if (ASPxScheduler1.Services.ResourceNavigation.ResourcePerPage == 1)
ASPxScheduler1.Services.ResourceNavigation.NavigateLast();
See Also