Serves as the base class that defines the methods and properties common to all controls in the Adf.Web.UI namespace.
Inheritance: IPanelItem
        /// <summary>
        /// Initializes a new instance of the <see cref="Adf.Web.UI.ValidatedPanelItem"/> class with the specified <see cref="Adf.Web.UI.BasePanelItem"/> and its name.
        /// </summary>
        /// <param name="panelItem">The items of <see cref="Adf.Web.UI.BasePanelItem"/> will validated.</param>
        /// <param name="name">The identifier of <see cref="Adf.Web.UI.BasePanelItem"/>.</param>
        /// <param name="mandatory">Add an asterix with item label if an input control is mandatory; else none.</param>
        protected ValidatedPanelItem(BasePanelItem panelItem, string name, bool mandatory)
        {
            _id = name;

            _labelControls.AddRange(panelItem.LabelControls);

            // todo: 1ste is label?
            _labelControls[0].ID = "itemLabel_" + name;

            if (mandatory)
            {
                Label asterix = new Label();
                asterix.Text = "*";
                asterix.CssClass = "mandatory";
                _labelControls.Add(asterix);
            }

            _itemControls.AddRange(panelItem.Controls);

            validator = SmartValidator.Create(name);

            _itemControls.Add(validator);
        }