What is Custom field Type in SharePoint ?
With custom field types, developers can really integrate with the SharePoint platform.Where with other ways of extending new functionality is build mostly on top of the SharePoint. With custom fields the level of integration is a lot higher. This extra integration comes at a price, the development of custom field types is more labor intensive than developing ‘normal’ field controls. But then, ‘normal’ fields can only be used on publishing pages and not in SharePoint display forms or in SharePoint lists. Custom field types can be used in both SharePoint lists and on display forms. The data custom fields use is stored in the SharePoint content database and custom fields can be used in SharePoint workflows and have access to the build in version control system .
create and implement Custom Field Type step by step:
1. Open Microsoft Visual Studio, Go to File-->New-->Project.
2. In the New Project dialog box, select Class Library from the Templates box, give it a name and location, then click OK.
3. Add Reference of Microsoft.SharePoint assembly, and then click OK.
4. Make the project as strong name key file.
5. Now rename class.cs with CountryStateField.cs
6. Creating a class for Custom field Type
7. Create a field definition Schema XML file
8. Create a class which contains FieldTypeValue.
create and implement Custom Field Type step by step.
Open Microsoft Visual Studio, Go to File-->New-->Project.
In the New Project dialog box, select Class Library from the Templates box, give it a name and location, then click OK.
Add Reference of Microsoft.SharePoint assembly, and then click OK.
Make the project as strong name key file.
Now rename class.cs with CountryStateField.cs
Creating a class for Custom field Type
Create a field definition Schema XML file
Create a class which contains FieldTypeValue.
Create a class which is used for to display that , fieldcontrol.
With custom field types, developers can really integrate with the SharePoint platform.Where with other ways of extending new functionality is build mostly on top of the SharePoint. With custom fields the level of integration is a lot higher. This extra integration comes at a price, the development of custom field types is more labor intensive than developing ‘normal’ field controls. But then, ‘normal’ fields can only be used on publishing pages and not in SharePoint display forms or in SharePoint lists. Custom field types can be used in both SharePoint lists and on display forms. The data custom fields use is stored in the SharePoint content database and custom fields can be used in SharePoint workflows and have access to the build in version control system .
create and implement Custom Field Type step by step:
1. Open Microsoft Visual Studio, Go to File-->New-->Project.
2. In the New Project dialog box, select Class Library from the Templates box, give it a name and location, then click OK.
3. Add Reference of Microsoft.SharePoint assembly, and then click OK.
4. Make the project as strong name key file.
5. Now rename class.cs with CountryStateField.cs
6. Creating a class for Custom field Type
7. Create a field definition Schema XML file
8. Create a class which contains FieldTypeValue.
create and implement Custom Field Type step by step.
Open Microsoft Visual Studio, Go to File-->New-->Project.
In the New Project dialog box, select Class Library from the Templates box, give it a name and location, then click OK.
Add Reference of Microsoft.SharePoint assembly, and then click OK.
Make the project as strong name key file.
Now rename class.cs with CountryStateField.cs
Creating a class for Custom field Type
Create a field definition Schema XML file
Create a class which contains FieldTypeValue.
Create a class which is used for to display that , fieldcontrol.