客户端脚本无法正常工作 [英] Client Side script is not working
问题描述
我点击了devexpress按钮我想选择devexpress网格行,但它不起作用。
< pre lang =xml> < dxe:ASPxButton ID = btnSelectAllOnPage runat = server AutoPostBack = true UseSubmitBehavior = false
< span class =code-attribute> < span class =code-attribute> 文本 = 选择页面上的所有内容 宽度 = 160px CssClass = formbutton HorizontalAlign = 中心 >
< ClientSideEvents 点击 = function(s,e){ASPxGridViewDepositAmountEdit.SelectAllRowsOnPage()} /
< / dxe:ASPxButton >
按钮和网格都在同一个updatepanel
i期望客户端事件接受参数类型功能不是脚本。
试试这个,
< dxe:ASPxButton ID = btnSelectAllOnPage runat = server AutoPostBack = true UseSubmitBehavior = false
文字 = 全选页面 宽度 = 160px CssClass = formbutton HorizontalAlign = 中心 >
< ClientSideEvents 点击 = onButtonClick; / >
< ; / dxe:ASPxButton >
然后脚本为
< script>
功能onButtonClick(s,e){
ASPxGridViewDepositAmountEdit.SelectAllRowsOnPage();
}
< / script>
谢谢
您好,
参考此链接
https://documentation.devexpress.com/#AspNet/CustomDocument9448 [ ^ ]
谢谢,
Magesh M
i have the devexpress button on click i want to select the rows of devexpress grid but it is not working.
<dxe:ASPxButton ID="btnSelectAllOnPage" runat="server" AutoPostBack="true" UseSubmitBehavior="false"
Text="Select All On Page" Width="160px" CssClass="formbutton" HorizontalAlign="Center">
<ClientSideEvents Click="function(s, e) { ASPxGridViewDepositAmountEdit.SelectAllRowsOnPage() }" />
</dxe:ASPxButton>
both button and grid is on same updatepanel
Hi,
i expect client event accept argument type of function not script.
Try this,
<dxe:ASPxButton ID="btnSelectAllOnPage" runat="server" AutoPostBack="true" UseSubmitBehavior="false" Text="Select All On Page" Width="160px" CssClass="formbutton" HorizontalAlign="Center"> <ClientSideEvents Click=onButtonClick; /> </dxe:ASPxButton>
Then Script as
<script>
function onButtonClick(s, e) { ASPxGridViewDepositAmountEdit.SelectAllRowsOnPage(); } </script>
Thanks
Hi,
Refer this Link
https://documentation.devexpress.com/#AspNet/CustomDocument9448[^]
Thanks,
Magesh M
这篇关于客户端脚本无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!