public void InitializeWithField(SPField field)
        {
            EnsureChildControls();

            _lookupFieldEditor.InitializeWithField(field);

            if (field == null || Page.IsPostBack) return;

            filterTextBox.Text = field.GetFieldAttribute("Filter");
            maxHeightTextBox.Text = field.GetFieldAttribute("MaxHeight");
            maxRowsTextBox.Text = field.GetFieldAttribute("MaxRows");
            minLengthTextBox.Text = field.GetFieldAttribute("MinLength");
            titleFieldTextBox.Text = field.GetFieldAttribute("TitleField");
            valueFieldTextBox.Text = field.GetFieldAttribute("ValueField");
            descriptionFieldsTextBox.Text = field.GetFieldAttribute("DescriptionFields");
        }
        public void InitializeWithField(SPField field)
        {
            EnsureChildControls();

            _lookupFieldEditor.InitializeWithField(field);

            if (field == null || Page.IsPostBack) return;

            filterTextBox.Text = field.GetFieldAttribute("Filter");
            maxHeightTextBox.Text = field.GetFieldAttribute("MaxHeight");
            maxRowsTextBox.Text = field.GetFieldAttribute("MaxRows");
            minLengthTextBox.Text = field.GetFieldAttribute("MinLength");
            titleFieldTextBox.Text = field.GetFieldAttribute("TitleField");
            valueFieldTextBox.Text = field.GetFieldAttribute("ValueField");
            descriptionFieldsTextBox.Text = field.GetFieldAttribute("DescriptionFields");

            var lookupField = field as SPFieldLookup;
            if (lookupField == null) return;

            //webDropDownList.SelectedValue = Guid.Empty == lookupField.LookupWebId
            //                                    ? SPContext.Current.Web.ID.ToString()
            //                                    : lookupField.LookupWebId.ToString();
        }