in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Urgent--Open Edit Form Template at click on custom button

Last post 11/7/2008 7:21 AM by Nathan (Developer Express). 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 11/5/2008 2:31 AM

    Urgent--Open Edit Form Template at click on custom button

     Hi All,

     I have AspxtreeList .We made a Edit form template.Two option New Inserting,Editing are Enable in this tree List.We want to make a other link(Like Custim Button) and want to open  Edit Form Template when click on this custom button.How can we do it.

    My requirement is urgent.Please tell me solution of this.

     

    Thanks

    Atul Kumar 

     

  • 11/7/2008 7:21 AM In reply to

    Re: Urgent--Open Edit Form Template at click on custom button

     Hi,

    You can do the following:

    <dxwtl:ASPxTreeList ID="ASPxTreeList1" runat="server" AutoGenerateColumns="False"

        DataSourceID="AccessDataSource1" KeyFieldName="ID" ParentFieldName="PARENTID" ClientInstanceName="treeList">

        <Columns>

            <dxwtl:TreeListTextColumn FieldName="DEPARTMENT" VisibleIndex="0">

            </dxwtl:TreeListTextColumn>

            <dxwtl:TreeListTextColumn FieldName="BUDGET" VisibleIndex="1">

            </dxwtl:TreeListTextColumn>

            <dxwtl:TreeListTextColumn FieldName="LOCATION" VisibleIndex="2">

            </dxwtl:TreeListTextColumn>

            <dxwtl:TreeListCommandColumn VisibleIndex="3">

                <EditButton Visible="True">

                </EditButton>

                <CustomButtons>

                    <dxwtl:TreeListCommandColumnCustomButton ID="customButton" Text="Custom Edit">

                    </dxwtl:TreeListCommandColumnCustomButton>

                </CustomButtons>

            </dxwtl:TreeListCommandColumn>

        </Columns>

        <ClientSideEvents CustomButtonClick="function(s, e) {

    if(e.buttonID == &quot;customButton&quot;)

    treeList.StartEdit(e.nodeKey);

    }" />

    </dxwtl:ASPxTreeList>

     

    Thanks, Nathan.
    R&D, .NET Team, Developer Express Inc.
    P.S. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/Support/Center
Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED