RadListBoxItem
This Class defines the RadListBoxItem in RadListBox.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class RadListBoxItem : ControlItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IMarkableStateManager, IStateManager, INamingContainer, IXmlSerializable, IComparable
Inheritance: objectControlWebControlControlItemRadListBoxItem
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadListBoxItem class.
public RadListBoxItem()
Initializes a new instance of the RadListBoxItem class.
Initializes a new instance of the RadListBoxItem class.
Properties
Gets or sets a value indicating whether the Item can be dragged and dropped.
[ClientPersistedProperty]
public bool AllowDrag { get; set; }
True if the user is able drag and drop the Item; otherwise false.
The default value is true.
Gets or sets a value indicating whether the item is checkable. A checkbox control is rendered for checkable nodes.
[ClientPersistedProperty]
public bool Checkable { get; set; }
If the CheckBoxes property set to
true, RadTreeView automatically displays a checkbox next to each node. You can set theCheckableproperty tofalsefor nodes that do not need to display a checkbox.
Gets or sets a value indicating whether the item is checked or not.
public bool Checked { get; set; }
True if the item is checked; otherwise false. The default value
is false
Gets the data key.
[Browsable(false)]
public object DataKey { get; }
The data key.
Gets or sets the path to an image to display for the item.
[ClientPersistedProperty]
public string ImageUrl { get; set; }
The path to the image to display for the item. The default value is empty string.
Use the ImageUrl property to specify the image for the item. If the ImageUrl property is set to empty string no image will be rendered. Use "~" (tilde) when referring to images within the current ASP.NET application.
Gets the RadListBox which this item belongs to.
[Browsable(false)]
public RadListBox ListBox { get; }
The RadListBox which this item belongs to; null (Nothing) if the item is not added to any RadListBox control.
Gets or sets a value indicating whether this RadListBoxItem is selected.
public bool Selected { get; set; }
true if selected; otherwise, false.
protected override HtmlTextWriterTag TagKey { get; }
Overrides:
Gets or sets the value of this RadListBoxItem.
public override string Value { get; set; }
The value of the item. If the Value property is not set the Text will be returned.
Overrides:
Methods
protected override void AddAttributesToRender(HtmlTextWriter writer)
Overrides:
Clones this instance.
Compares the current instance with another object of the same type.
public int CompareTo(object obj)
An object to compare with this instance.
Returns:A 32-bit signed integer that indicates the relative order of the objects
being compared. The return value has these meanings: Value Meaning Less than
zero This instance is less than obj. Zero This instance is
equal to obj. Greater than zero This instance is greater than
obj.
obj is not the same type as this instance.
Implements:
protected override ControlItemCollection CreateChildItemCollection()
Overrides:
protected override void LoadFromDictionary(IDictionary<string, object> dictionary)
Overrides:
Removes this RadListBoxItem from the RadListBox control which contains it.
public void Remove()
Renders the HTML opening tag of the control to the specified writer. This method is used primarily by control developers.
public override void RenderBeginTag(HtmlTextWriter writer)
A HtmlTextWriter that represents the output stream to render HTML content on the client.
Overrides:
protected override void RenderContents(HtmlTextWriter writer)
Overrides: