Try Now
More in this section

Forums / General Discussions / List Control

List Control

2 posts, 0 answered
  1. Eric
    Eric avatar
    40 posts
    10 Apr 2009
    23 Sep 2009
    Link to this post
    How can I hide the ListControl header? 
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    16 Jun 2017
    23 Sep 2009
    Link to this post
    Hi Eric,

    If you want to remove the time of a List Item can map the external template for the desired view and remove  the Literal control that is responsible for showing the title. For instance you could map SimpleListTemplate and remove the Literal control with ID="listTitle". More elegant way will be creating the control and overriding Lists_ItemDataBound event. Then hiding the text.

    Sample code:

            public bool  Title 
                getreturn this.ShowTitle;} 
                setthis.ShowTitle = value;} 
            private bool ShowTitle = true;  
            protected override void Lists_ItemDataBound(object sender, RepeaterItemEventArgs e) 
                base.Lists_ItemDataBound(sender, e); 
                ITextControl control = e.Item.FindControl("listTitle"as ITextControl; 
                if (!ShowTitle) 
                    control.Text = ""

    I hope this helps.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered