开发者论坛

 找回密码
 注册 (请使用非IE浏览器)
查看: 1971|回复: 0

ASPxTreeList 分页后第二页及以后页中 点击“上传附件”不响应

[复制链接]

0

精华

0

贡献

0

赞扬

帖子
3
软币
59
在线时间
0 小时
注册时间
2015-10-10
发表于 2015-10-10 15:08:55 | 显示全部楼层 |阅读模式
<dxwt:ASPxTreeList ID="tlist" runat="server" AutoGenerateColumns="false" Width="100%" KeyFieldName="ID" ParentFieldName="PINDEX"








           >
            <Settings GridLines="Both" />

            <SettingsBehavior AllowFocusedNode="true" ExpandCollapseAction="NodeDblClick" />
            <SettingsEditing Mode="PopupEditForm" EditFormColumnCount="1" />
            <SettingsPopupEditForm Width="600" HorizontalAlign="WindowCenter" ShowHeader="false" />
            <SettingsText ConfirmDelete="确定删除?" RecursiveDeleteError="该节点有子节点,不能删除" />
            <SettingsSelection Recursive="true" Enabled="false" />
            <Columns>
                <dxwt:TreeListTextColumn Caption="*资料名称" FieldName="TITLE" VisibleIndex="0" AllowSort="False">
                    <%--  <EditFormSettings VisibleIndex="0" />--%>
                    <DataCellTemplate>
                        <asp:Label Text='<%# Eval("TITLE")%>' ToolTip='<%# Eval("DESCRIPTION")%>' runat="server" />
                    </DataCellTemplate>
                </dxwt:TreeListTextColumn>


                <dxwt:TreeListTextColumn FieldName="DESCRIPTION" Caption="说明" Visible="false"
                    EditFormSettings-Visible="True" VisibleIndex="7" EditCellStyle-VerticalAlign="Top">
                    <EditFormSettings VisibleIndex="7" />
                    <EditCellTemplate>
                        <asp:TextBox ID="txtdescription" runat="server" Width="100%" Height="300px" Text='<%# Eval("DESCRIPTION")%>' TextMode="MultiLine"></asp:TextBox>
                    </EditCellTemplate>
                </dxwt:TreeListTextColumn>
                <dxwt:TreeListCommandColumn ShowNewButtonInHeader="false" Width="50px" VisibleIndex="8">
                    <HeaderCaptionTemplate>
                        <dx:ASPxHyperLink ID="tjlink" runat="server" Text="添加" EnableClientSideAPI="true">
                        </dx:ASPxHyperLink>
                    </HeaderCaptionTemplate>
                    <EditButton Text="修改" Visible="True" />
                    <NewButton Text="添加" Visible="True" />
                    <DeleteButton Text="删除" Visible="true" />
                    <UpdateButton Text="保存" Visible="true" />
                    <CancelButton Text="取消" Visible="true" />
                </dxwt:TreeListCommandColumn>

                <dxwt:TreeListTextColumn Caption="上传附件" Width="40px">
                    <EditFormSettings VisibleIndex="9" Visible="False" />
                    <DataCellTemplate>
                        <asp:LinkButton ID="btnup" AutoPostBack="false" runat="server" CommandName='<%# Eval("ID")%>' CommandArgument='<%# Eval("PINDEX")%>' Text="上传附件"></asp:LinkButton>
                    </DataCellTemplate>
                </dxwt:TreeListTextColumn>
            </Columns>
        </dxwt:ASPxTreeList>

点击上传附件,不执行 btnup_Click

点击上传附件,不执行 btnup_Click





回复

使用道具 举报

Archiver|手机版|小黑屋|开发者网 ( 苏ICP备08004430号-2 )
版权所有:南京韵文教育信息咨询有限公司

GMT+8, 2024-5-30 07:57

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表