ASPxClientGridView.GetEditFormLayoutItemOrGroup(name) Method
Returns the form layout item or group.
#Declaration
GetEditFormLayoutItemOrGroup(
name: string
): ASPxClientLayoutItem
#Parameters
Name | Type | Description |
---|---|---|
name | string | The item’s or group’s name. |
#Returns
Type | Description |
---|---|
ASPx |
The layout item. |
#Remarks
The following example illustrates how to find the layout group whose name is “groupContacInfo” and then switch its visibility when a user clicks the the “Show Details…” hyperlink.
function onShowHideInfoClick(s, e) {
var contactLayoutGroup = clientGrid.GetEditFormLayoutItemOrGroup("groupContactInfo");
contactLayoutGroup.SetVisible(!contactLayoutGroup.GetVisible());
}
Related Server-Side API:
- EditFormLayoutCreated - Fires when the edit form layout is created.
- FindLayoutItemOrGroup(String) - Returns a layout item or group with the specified name.