There are several cell types that are made available by using ASP.NET AJAX. The following tasks show how to create them:
- Setting an Automatic-Completion Cell
- Setting a Calendar Cell
- Setting a Combo Box Cell
- Setting a Filtered Text Cell
- Setting a Masked Edit Cell
- Setting a Mutually Exclusive Check Box Cell
- Setting a Numeric Spin Cell
- Setting a Rating Cell
- Setting a Slider Cell
- Setting a Slide Show Cell
- Setting a Text Box with Watermark Cell
These cell types are dependent on the extenders of the Microsoft ASP.NET AJAX Control Toolkit. The appearance and behavior of these cell types are controlled by the AJAX Control Toolkit. For more information, see the Microsoft AJAX site.
All controls in the AJAX Control Toolkit can add or attach client behaviors to a target control. The target control is exposed as the Editor property of the extender cell type in Spread.
Multiple behaviors can be attached to the same target control, which is also supported in the AJAX extender implementation of Spread. For example, we can add a MaskedEditExtender to DateCalendarCellType. As a result, this cell type combines two extenders.
Unlike the other cell types in Spread, there are no restrictions and validation of any of the extenders properties, so use this cell type carefully and provide validation as needed.
Be aware of these limitations to these AJAX cell types.
- The AJAX Control Toolkit is still under development, so some of the control properties don’t behave correctly as designed.
- When users export these cell types to PDF or Excel files, only the cell type value is exported.
Follow these guidelines for using AJAX extenders in a development environment.
- A ScriptManager must be placed on the Page in order to use AJAX extenders.
- If you use the .NET 2.0 framework version of the FarPoint.Web.Spread.Extender.dll assembly in the .NET 3.5 framework, and you wish to use the 3.5 version of the AJAXControlToolkit.dll assembly, you would need to add binding redirect code to the web.config file (See the code below).
To set a binding redirect, code similar to the following would need to be added to the Web config file (the version number should match the actual version number of the assembly).
Code Copy Code <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="AjaxControlToolkit" publicKeyToken="28f01b0e84b6d53e"/> <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.0.20229.20843"/> </dependentAssembly> </assemblyBinding> </runtime>
For more information on AJAX support, refer to Working with AJAX.
For information on the various cell type classes, refer to the cell type classes in the Assembly Reference.