예제 #1
0
 protected override void CreateChildControls()
 {
     base.CreateChildControls();
     this.Controls.Add(this.listSource);
     this.listview.CssClass      = this.ListViewCssClass;
     this.listview.ID            = "listview";
     this.listview.Height        = Unit.Percentage(100.0);
     this.listview.ShowSearchBar = false;
     this.listview.ShowHeader    = false;
     if (this.showListviewHeader)
     {
         foreach (ColumnHeader columnHeader in this.listview.Columns)
         {
             if (!string.IsNullOrEmpty(columnHeader.Text))
             {
                 this.listview.ShowHeader = true;
                 break;
             }
         }
     }
     this.listview.ShowTitle     = false;
     this.listview.ShowStatus    = false;
     this.listview.EmptyDataText = this.EmptyDataText;
     this.listview.DataSourceID  = this.listSource.ID;
     this.InitListviewCommandCollection();
     this.Controls.Add(this.listview);
     if (this.Content != null)
     {
         PropertiesContentPanel propertiesContentPanel = new PropertiesContentPanel();
         propertiesContentPanel.ID = "contentContainer";
         this.Controls.Add(propertiesContentPanel);
         this.Content.InstantiateIn(propertiesContentPanel);
     }
 }
예제 #2
0
 protected override void CreateChildControls()
 {
     base.CreateChildControls();
     if (this.Content != null)
     {
         PropertiesContentPanel propertiesContentPanel = new PropertiesContentPanel();
         propertiesContentPanel.ID = "contentContainer";
         this.Controls.Add(propertiesContentPanel);
         this.Content.InstantiateIn(propertiesContentPanel);
     }
 }