KaxSchedulerResourcesPopulating Event |
Occurs when the scheduler is about to request resources from the Web Service.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic event ResourcesPopulatingEventHandler ResourcesPopulating
Public Event ResourcesPopulating As ResourcesPopulatingEventHandler
public:
event ResourcesPopulatingEventHandler^ ResourcesPopulating {
void add (ResourcesPopulatingEventHandler^ value);
void remove (ResourcesPopulatingEventHandler^ value);
}
member ResourcesPopulating : IEvent<ResourcesPopulatingEventHandler,
ResourcesPopulatingEventArgs>
Value
Type:
Kettic.AspNet.ControlsResourcesPopulatingEventHandler
Remarks
Resources need to be populated from the server when using resource grouping.
Doing so also reduces the client-side initialization time.
This operation requires the WebPermission to be granted
for the Web Service URL. This permission is not granted by default in Medium Trust.
You can disable the population of the resources from the server and still use
client-side rendering for grouped views. To do so you need to set the
WebServiceSettings.ResourcePopulationMode
to Manual and
populate the resources from the OnInit method of the page.
The ResourcesPopulatingEventArgs
contains additional information about the request that is about to be made.
You can use its properties to modify the URL, supply credentials and so on.
The operation can be cancelled by setting the
ResourcesPopulatingEventArgs.Cancel
property of ResourcesPopulatingEventArgs to true.
Examplesvoid KaxScheduler1_ResourcesPopulating(object sender, ResourcesPopulatingEventArgs e)
{
e.Cancel = true;
}
Sub KaxScheduler1_ResourcesPopulating(sender As Object, e As ResourcesPopulatingEventArgs)
e.Cancel = true
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also