public DownloadColumnTemplate (string ID, string Caption, System.Web.UI.WebControls.ListItemType Type)
		{
			mobjTemplateType = Type;
			mstrID = ID;
			mstrCaption = Caption;
			if (mstrCaption == string.Empty)
			{
				mstrCaption = "Download";
			}
		}
Пример #2
0
        //- $GetTemplate -//
        private ITemplate GetTemplate(System.Web.UI.WebControls.ListItemType type)
        {
            String listCssClass = "labels";

            if (!String.IsNullOrEmpty(this.ListCssClass))
            {
                listCssClass = this.ListCssClass;
            }
            if (this.TemplateType == null)
            {
                return(LabelListControlTemplateFactory.CreateTemplate(LabelListControlTemplateFactory.TemplateType.Linear, type, listCssClass, this.RawDataSource));
            }
            //+
            return((ITemplate)Themelia.Activation.ObjectCreator.Create(this.TemplateType, type, listCssClass, this.RawDataSource));
        }
 protected override System.Web.UI.WebControls.RepeaterItem CreateItem(int itemIndex, System.Web.UI.WebControls.ListItemType itemType)
 {
     // Return a new RepeaterItem with the corresponding item index and type.
     return(new System.Web.UI.WebControls.RepeaterItem(itemIndex, itemType));
 }