using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bowin.Web.Controls.Mvc
{
    public class ListControlOptions : BaseControlOptions
    {
        public ListControlOptions()
        {
            ItemList = new List<ListControlItem>();
            SelectedValues = new List<object>();
            ColumnCount = 1;
        }

        public int ColumnCount { get; set; }
        public int? Width { get; set; }

        public List<object> SelectedValues
        {
            get;
            set;
        }

        public List<ListControlItem> ItemList
        {
            get;
            set;
        }

        public string ItemSourceUrl { get; set; }
        public string SelectedValueUrl { get; set; }

        public string TextField
        {
            get;
            set;
        }

        public string ValueField
        {
            get;
            set;
        }

        public string OnClick
        {
            get;
            set;
        }

        public string OnLoadSuccess
        {
            get;
            set;
        }
    }
}