in

SharePoint University

Clean slate. Nothing but SharePoint.
Go, SharePoint!

Accessing custom field properties within Field Editor Usercontrol

Last post 09-12-2007 2:07 AM by arun_gp. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 09-12-2007 2:07 AM

    Accessing custom field properties within Field Editor Usercontrol

     

    Hi All

     I am creating a custom field type for sharepoint list.

     

    I created the custom field by inheriting the sharepoint base field SPFieldMultiLineText.  I‘ve also created a custom field property

    “SearchPath” as follows…

     

    private string _searchPath

            public string SearchPath

            {

                get

                {

                    return _ searchPath;

                }                                                                           

                set

                {

                    this._ searchPath = value;

                }

            }

     

    for rendering custom property I have created an .ascx file along with a code-behind inherited from User Control and  IFieldEditor.

     

    I could able to access and modify the custom property from within the  methods InitializeWithField()  and OnSaveChange().

    I have created another .ascx file and a code-behind file as Field rendering Usercontrol inherited from BaseFieldControl for providing UI for data entry into the listt. I want to implement some logic during this data entry based on the custom field’s additional property value.

    But my problem is I could not access the custom property of my custom field class from within the Field Rendering User control.

    How I can access the custom field’s custom property values within the field rendering usercontrol?

    Please help me.

    Arun

Page 1 of 1 (1 items)

Need SharePoint Training? Attend a SharePoint Bootcamp!
Forum content (c) original posters. Everything else (c) 2008 SharePoint Experts, Inc.