Spread for ASP.NET 10 Product Documentation > Developer's Guide > Customizing User Interaction > Working with AJAX > Enabling AJAX Support |
AJAX allows the component to refresh without refreshing the entire page. You can add AJAX support to the FpSpread component by setting the EnableAjaxCall property. Setting this property to True prevents Spread from doing a full page postback when implementing the following features - expanding and collapsing child sheets in a hierarchical display, column sorting, inserting rows, or paging.
If the ClientAutoCalculation property is true, then after a cell value is changed, an AJAX call is made to the FpSpread component. Then the component calculates the formulas and sends the values to the client side. The component then updates the values at the client side.
Use the EnableAjaxCall property to enable AJAX support or use EnableAjaxCall and the ClientAutoCalculation properties to enable AJAX support of formulas.
You can set the EnableAjaxCall property and the ClientAutoCalculation property in code.
The following code allows AJAX support and AJAX support of formulas.
C# |
Copy Code
|
---|---|
FpSpread1.EnableAjaxCall = true; FpSpread1.ClientAutoCalculation = true; |
VB |
Copy Code
|
---|---|
FpSpread1.EnableAjaxCall = True FpSpread1.ClientAutoCalculation = True< |