ListControlExtensions
Wisej.Web.Markup.ListControlExtensions
Last updated
Was this helpful?
Wisej.Web.Markup.ListControlExtensions
Last updated
Was this helpful?
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the ListControl class.
public class ListControlExtensions
Sets the AllowHtml property of the specified ListControl.
TListControl
listControl
The list control for which to set the AllowHtml property.
value
A boolean indicating whether HTML content is allowed in the list items.
Returns: TListControl. The modified list control with the updated AllowHtml property.
This method allows you to enable or disable HTML content in the list items.
myListControl.AllowHtml(true);
Sets the BorderStyle property of the specified ListControl.
TListControl
listControl
The list control for which to set the BorderStyle property.
borderStyle
Returns: TListControl. The modified list control with the updated BorderStyle property.
This method allows you to set the border style for the list control.
myListControl.BorderStyle(BorderStyle.FixedSingle);
Sets the DataSource property of the specified ListControl.
TListControl
listControl
The list control for which to set the DataSource property.
value
The data source to bind to the list control.
Returns: TListControl. The modified list control with the updated DataSource property.
This method allows you to set the data source for the list control.
myListControl.DataSource(myDataSource);
Sets the DisplayMember property of the specified ListControl.
TListControl
listControl
The list control for which to set the DisplayMember property.
value
The property to display for the list items.
Returns: TListControl. The modified list control with the updated DisplayMember property.
This method allows you to set the property to display for the list items.
myListControl.DisplayMember("Name");
Sets the FormatInfo property of the specified ListControl.
TListControl
listControl
The list control for which to set the FormatInfo property.
provider
Returns: TListControl. The modified list control with the updated FormatInfo property.
This method allows you to set the format provider for the list control.
myListControl.FormatInfo(CultureInfo.CurrentCulture);
Sets the FormatString property of the specified ListControl.
TListControl
listControl
The list control for which to set the FormatString property.
format
The format string to use for displaying the list items.
Returns: TListControl. The modified list control with the updated FormatString property.
This method allows you to set the format string for the list control.
myListControl.FormatString("C2");
Sets the FormattingEnabled property of the specified ListControl.
TListControl
listControl
The list control for which to set the FormattingEnabled property.
value
A boolean indicating whether formatting is enabled for the list items.
Returns: TListControl. The modified list control with the updated FormattingEnabled property.
This method allows you to enable or disable formatting for the list control.
myListControl.FormattingEnabled(true);
Sets the IconMember property of the specified ListControl.
TListControl
listControl
The list control for which to set the IconMember property.
value
The property to use as the icon for the list items.
Returns: TListControl. The modified list control with the updated IconMember property.
This method allows you to set the property to use as the icon for the list items.
myListControl.IconMember("IconPath");
Sets the Invalid property of the specified ListControl.
TListControl
listControl
The list control for which to set the Invalid property.
value
A boolean indicating whether the list control is in an invalid state.
Returns: TListControl. The modified list control with the updated Invalid property.
This method allows you to set the invalid state for the list control.
myListControl.Invalid(true);
Sets the InvalidMessage property of the specified ListControl.
TListControl
listControl
The list control for which to set the InvalidMessage property.
message
The message to display when an invalid operation occurs in the list control.
Returns: TListControl. The modified list control with the updated InvalidMessage property.
This method allows you to set a custom invalid message for the list control.
myListControl.InvalidMessage("Invalid selection.");
Attaches an event handler for the SelectedValueChanged event of the specified ListControl.
TListControl
listControl
The list control to attach the event handler to.
action
An action to execute when the SelectedValue property changes.
Returns: TListControl. The modified list control with the attached SelectedValueChanged event handler.
This method allows you to execute a custom action whenever the SelectedValue property of the list control changes.
myListControl.OnSelectedValueChanged(lc =>
{
AlertBox.Show("Selected value changed!");
});
Sets the PrefetchItems property of the specified ListControl.
TListControl
listControl
The list control for which to set the PrefetchItems property.
count
The number of items to prefetch for the list control.
Returns: TListControl. The modified list control with the updated PrefetchItems property.
This method allows you to set the number of items to prefetch for the list control.
myListControl.PrefetchItems(50);
Sets the SelectedIndex property of the specified ListControl.
TListControl
listControl
The list control for which to set the SelectedIndex property.
value
The index to select in the list control.
Returns: TListControl. The modified list control with the updated SelectedIndex property.
This method allows you to set the selected index for the list control.
myListControl.SelectedIndex(0);
Sets the SelectedValue property of the specified ListControl.
TListControl
listControl
The list control for which to set the SelectedValue property.
value
The value to select in the list control.
Returns: TListControl. The modified list control with the updated SelectedValue property.
This method allows you to set the selected value for the list control.
myListControl.SelectedValue(someValue);
Sets the ShowToolTips property of the specified ListControl.
TListControl
listControl
The list control for which to set the ShowToolTips property.
value
A boolean indicating whether tooltips should be shown for the list items.
Returns: TListControl. The modified list control with the updated ShowToolTips property.
This method allows you to enable or disable tooltips for the list items.
myListControl.ShowToolTips(true);
Sets the ToolTipMember property of the specified ListControl.
TListControl
listControl
The list control for which to set the ToolTipMember property.
value
The property to use as the tooltip for the list items.
Returns: TListControl. The modified list control with the updated ToolTipMember property.
This method allows you to set the property to use as the tooltip for the list items.
myListControl.ToolTipMember("Description");
Sets the ValueMember property of the specified ListControl.
TListControl
listControl
The list control for which to set the ValueMember property.
value
The property to use as the value for the list items.
Returns: TListControl. The modified list control with the updated ValueMember property.
This method allows you to set the property to use as the value for the list items.
myListControl.ValueMember("ID");
Sets the VirtualScroll property of the specified ListControl.
TListControl
listControl
The list control for which to set the VirtualScroll property.
value
A boolean indicating whether virtual scrolling is enabled for the list control.
Returns: TListControl. The modified list control with the updated VirtualScroll property.
This method allows you to enable or disable virtual scrolling for the list control.
myListControl.VirtualScroll(true);
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The value to set for the list control.
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The to use for formatting the list items.
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The type of the list control, must inherit from .
The type of the list control, must inherit from .