• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class ListControlExtensions

Inheritance
System.Object
ListControlExtensions
Namespace: DotNetNuke.Web.UI.WebControls.Extensions
Assembly: DotNetNuke.Web.dll
Syntax
public static class ListControlExtensions : object

Methods

| Improve this Doc View Source

AddItem(ListControl, String, String)

Declaration
public static void AddItem(this ListControl control, string text, string value)
Parameters
Type Name Description
ListControl control
System.String text
System.String value
| Improve this Doc View Source

DataBind(ListControl, String, Boolean)

Declaration
public static void DataBind(this ListControl control, string initial, bool findByText)
Parameters
Type Name Description
ListControl control
System.String initial
System.Boolean findByText
| Improve this Doc View Source

DataBind(ListControl, String)

Declaration
public static void DataBind(this ListControl control, string initialValue)
Parameters
Type Name Description
ListControl control
System.String initialValue
| Improve this Doc View Source

FindByTextWithIgnoreCase(ListItemCollection, String)

Use this method instead of ListItemCollection.FindByText to find the specific item with case-insensitive.

Declaration
public static ListItem FindByTextWithIgnoreCase(this ListItemCollection listItems, string text)
Parameters
Type Name Description
ListItemCollection listItems

the items.

System.String text

the item with this text want to find.

Returns
Type Description
ListItem

the specific item or null if didn't match the text with any item.

| Improve this Doc View Source

FindByValueWithIgnoreCase(ListItemCollection, String)

Use this method instead of ListItemCollection.FindBValue to find the specific item with case-insensitive.

Declaration
public static ListItem FindByValueWithIgnoreCase(this ListItemCollection listItems, string value)
Parameters
Type Name Description
ListItemCollection listItems

the items.

System.String value

the item with this value want to find.

Returns
Type Description
ListItem

the specific item or null if didn't match the value with any item.

| Improve this Doc View Source

InsertItem(ListControl, Int32, String, String)

Declaration
public static void InsertItem(this ListControl control, int index, string text, string value)
Parameters
Type Name Description
ListControl control
System.Int32 index
System.String text
System.String value
| Improve this Doc View Source

Select(ListControl, String, Boolean, Int32)

Declaration
public static void Select(this ListControl control, string initial, bool findByText, int fallbackIndex)
Parameters
Type Name Description
ListControl control
System.String initial
System.Boolean findByText
System.Int32 fallbackIndex
| Improve this Doc View Source

Select(ListControl, String, Boolean)

Declaration
public static void Select(this ListControl control, string initial, bool findByText)
Parameters
Type Name Description
ListControl control
System.String initial
System.Boolean findByText
| Improve this Doc View Source

Select(ListControl, String)

Declaration
public static void Select(this ListControl control, string initial)
Parameters
Type Name Description
ListControl control
System.String initial
  • View Source
Back to top by the community, for the community... #DNNCMS