Skip to main content

ASPxTreeListTemplateReplacement Class

Represents a server control that allows the regular Edit Form’s cells and buttons to be displayed within the Edit Form’s template.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v24.2.dll

Declaration

public class ASPxTreeListTemplateReplacement :
    ASPxWebComponent,
    IStopLoadPostDataOnCallbackMarker

Remarks

The ASPxTreeList enables you to provide any possible layout for its Edit Form using the TreeListTemplates.EditForm template.

The ASPxTreeListTemplateReplacement control is designed to display only the regular Edit Form’s contents (edit cells, Update and Cancel buttons) within a template. This control isn’t displayed within the Toolbox. You should manually create it within the Edit Form’s template container. Use the ASPxTreeListTemplateReplacement.ReplacementType property to specify which edit form controls are displayed by the control:

<Templates>
<EditForm>
<dxtc:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0">
    <TabPages>
        <dxtc:TabPage>
            <ContentCollection>
                <dxw:ContentControl runat="server">
                    <dxwtl:ASPxTreeListTemplateReplacement runat="serv er" ID="tr"
                    ReplacementType="Editors">
                    </dxwtl:ASPxTreeListTemplateReplacement>
                </dxw:ContentControl>
            </ContentCollection>
        </dxtc:TabPage>
    </TabPages>
</dxtc:ASPxPageControl>
<dxwtl:ASPxTreeListTemplateReplacement runat="server" ID="tr2"
ReplacementType="UpdateButton">
</dxwtl:ASPxTreeListTemplateReplacement>

<dxwtl:ASPxTreeListTemplateReplacement runat="server" ID="tr3"
ReplacementType="CancelButton">
</dxwtl:ASPxTreeListTemplateReplacement>
</EditForm>
</Templates>
See Also