Jul 05, 2010, 1:48 PM
[CLOSED] CommandColumn and DirectEvents
I have a GridColumn with 2 CommandColumn and a Listener:
There isn' an Fn attribute for Command...
Thanks,
Stefano
....
....
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
....
<ext:CommandColumn Width="30">
<Commands>
<ext:GridCommand CommandName="Command1" />
</Commands>
</ext:CommandColumn>
<ext:CommandColumn Width="30">
<Commands>
<ext:GridCommand CommandName="Command2" />
</Commands>
</ext:CommandColumn>
</Columns>
</ColumnModel>
<Listeners>
<Command Fn="commandHandler" />
</Listeners>
....
....
This is the listener: <script type="text/javascript">
var commandHandler = function (cmd, record) {
switch (cmd) {
case "Command1":
....
break;
case "Command2":
....
break;
}
}
</script>
I need to replace the Listener with a DirectEvent, but how can I associate a specific DirectEvent (with a specific Url) to each CommandButton?There isn' an Fn attribute for Command...
Thanks,
Stefano
Last edited by Vladimir; Jul 05, 2010 at 6:34 PM.