ComponentOne Chart for .NET (2.0) Search HelpCentral 

Applying Callbacks to C1WebChart with AJAX

C1WebChart can be updated through AJAX. With the AJAX support, you can have better interaction with WebChart at run time. When a user performs client behavoirs on the C1WebChart, the client behaviors are managed with image maps and out-of-band callback. For example, when a user performs axis scrolling, on the axis scrollbar, only the information for the axis scrollbars are sent to the server. This increases the usability and functionality of the C1WebChart by enabling it to handle large amounts of data without affecting the C1WebChart's performance. To enable callbacks rather than postbacks to C1WebChart, you can use the GeneralCallback event. You can also use client side events

Visual Cues During CallBacks

You can use a visual cue to show the callback is working when the user clicks something that triggers AJAX actions. For example, C1WebChart has two properties,CallbackWaitImageUrl and CallbackWaitControlID that can be set to provide visual feedback and enhance the application.

The CallbackWaitImageUrl property shows a default spinner  when the AJAX action is triggered. This improves the usability of the Web application by allowing the user to see the AJAX action performing. You can specify a different image by changing the setting in the CallbackWaitImageUrlproperty. TheCallbackWaitControlID property functions the same way, except that it shows a control rather than an image.

Note: If both the CallbackWaitControlID and CallbackWaitImageURL properties are set, CallbackWaitControlIDtakes precedence over the CallbackWaitImageURL, and only the control appears.

For information on how to use the CallbackWaitImageUrl or the CallbackWaitImageURL properties, see Using Visual Cues During a CallBack.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.