当单击网格中的“添加行"时,不会触发 acumatica _RowInserting 事件 [英] acumatica _RowInserting events are not triggered when click on 'add row' in the grid

查看:17
本文介绍了当单击网格中的“添加行"时,不会触发 acumatica _RowInserting 事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在支票和付款"屏幕中遇到网格问题.当我单击添加行"按钮时,网格中会出现一个新行,但不在缓存中.不会触发 APAdjust_RowInsertingAPAdjust_RowInserted 等事件.

I am have problem with Grid in Checks and Payments screen. When I click on "Add row" button a new row appears in the grid, but not in cache. Events such as APAdjust_RowInserting, APAdjust_RowInserted are not triggered.

也许有人知道为什么会这样?

Maybe somebody know why this happens?

推荐答案

要在网格中插入新行时立即触发对服务器的回调,您需要添加标签 .

To trigger a callback to the server as soon as a new row is inserted in a grid, you need to add the tag <Mode InitNewRow="true" />.

这是一个例子:

<px:PXGrid ID="grid" runat="server" Height="150px" Width="100%" Caption="Temporary Credit Limit History"
    SkinID="Details">
    <Levels>
        <px:PXGridLevel DataMember="ARTempCreditLimitRecord">
            <Columns>
                <px:PXGridColumn DataField="CustomerID" TextAlign="Right" Visible="False" />
                <px:PXGridColumn DataField="StartDate" Width="90px" AutoCallBack="True" />
                <px:PXGridColumn DataField="EndDate" Width="90px" AutoCallBack="True" />
                <px:PXGridColumn DataField="TempCreditLimit" TextAlign="Right" Width="100px" />
                <px:PXGridColumn DataField="LineID" TextAlign="Right" Visible="False" />
            </Columns>
        </px:PXGridLevel>
    </Levels>
    <Mode InitNewRow="True" />
    <AutoSize Container="Window" Enabled="True" MinHeight="150" />
</px:PXGrid>

这篇关于当单击网格中的“添加行"时,不会触发 acumatica _RowInserting 事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆