expressappframework-devexpress-dot-expressapp-dot-compositeview-dot-finditem-x28-system-dot-string-x29.md
Returns a specified View Item from a Composite View’s CompositeView.Items collection.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public ViewItem FindItem(
string id
)
Public Function FindItem(
id As String
) As ViewItem
| Name | Type | Description |
|---|---|---|
| id | String |
A string value that is the View Item to be found in the current View’s CompositeView.Items collection.
|
| Type | Description |
|---|---|
| ViewItem |
A ViewItem object that represents the View Item specified by the id parameter.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the FindItem(String) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
if (View.Id == DashboardViewId) {
SourceItem = (DashboardViewItem)View.FindItem(FilterSourceID);
TargetItem = (DashboardViewItem)View.FindItem(FilterTargetId);
foreach(var item in (IModelLayoutGroup)e.ModelLayoutElement) {
if(item is IModelLayoutViewItem layoutViewItem && View.FindItem(layoutViewItem.ViewItem.Id) is ListPropertyEditor propertyEditor) {
propertyEditor.Frame.GetController<NestedListViewTabCountController>().Initialize(layoutGroup);
OrderTemplate parameters = (OrderTemplate)e.PopupWindow.View.CurrentObject;
ListPropertyEditor listPropertyEditor = ((DetailView)e.PopupWindow.View).FindItem("Services") as ListPropertyEditor;
IObjectSpace os = Application.CreateObjectSpace(typeof(Team));
if (ViewCurrentObject != null) {
SetControlMaskSettings((PropertyEditor)View.FindItem("TestString"), ViewCurrentObject.Mask);
}
//var detailView = Application.CreateDetailView(os, obj);
var it = View.FindItem(nameof(DemoObject.TestMe)) as MyEnumPropertyEditor;
//Set the date picker display mode to scroll picker
If ViewCurrentObject IsNot Nothing Then
SetControlMaskSettings(CType(View.FindItem("TestString"), PropertyEditor), ViewCurrentObject.Mask)
End If
See Also