开发者

"Managing" server side commandcolumn click

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


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:

<DirectEvents>
    <Command OnEvent="Command_Handler"></Command>
</DirectEvents>

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜