“管理”服务器端命令列单击
单击命令列后如何“管理”服务器端事件? 看看我的代码:`
<ext:CommandColumn Width="60">
<Commands>
<ext:GridCommand Icon="ClockStart" CommandName="CloseTicket">
<ToolTip Text="Chiudi Ticket" />
</ext:GridCommand>
<ext:GridCommand Icon="ArrowJoin" CommandName="Riassegna">
<ToolTip Text="Assegna ad altro gruppo/utente" />
</ext:GridCommand>
</Commands>`
</ext:CommandColumn>
如何“分配”服务器端事件? 谢谢
How can I "manage" server side event after a click on a command column?
Take look at my code:`
<ext:CommandColumn Width="60">
<Commands>
<ext:GridCommand Icon="ClockStart" CommandName="CloseTicket">
<ToolTip Text="Chiudi Ticket" />
</ext:GridCommand>
<ext:GridCommand Icon="ArrowJoin" CommandName="Riassegna">
<ToolTip Text="Assegna ad altro gruppo/utente" />
</ext:GridCommand>
</Commands>`
</ext:CommandColumn>
How can I "assign" server side events?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要分配服务器端事件,就像在代码隐藏中定义的方法中一样,您需要在网格面板上为“命令”事件设置一个直接事件,如下所示:
然后该命令的事件处理程序需要确定按下了哪个命令,也许通过使用命令名称或类似名称并执行适当的操作。
To assign a server side event, as in a method defined in your codebehind you need to setup a directevent on your grid panel for the 'Command' event as below:
Then your event handler for this command needs to determine which command was pressed, perhaps by using command name or the suchlike and performing the appropriate action.