Sep 17, 2009, 3:30 AM
Apllying cell command and Ajax method ?
Hi, guys.
I try to use like following but it doesn't work, please show me use ajax events or ajax methods in this case. thanks.
I try to use like following but it doesn't work, please show me use ajax events or ajax methods in this case. thanks.
<ext:GridPanel ID="GridPanel1" runat="server" StoreID="Store1" Title="Danh sch file va upload"
Width="600" AutoHeight="true">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ColumnID="ID" Header="S th t" Width="70" Sortable="true" DataIndex="ID" />
<ext:Column Header="Tn hin th" Width="230" Sortable="true" DataIndex="Item0">
</ext:Column>
<ext:Column Header="Tn file" Width="240" Sortable="true" DataIndex="Item1">
</ext:Column>
<ext:CommandColumn Width="60">
<Commands>
<ext:GridCommand Icon="Delete" CommandName="Delete">
<ToolTip Text="Xo file" />
</ext:GridCommand>
<ext:CommandSeparator />
<ext:GridCommand Icon="TransmitGo" CommandName="Transform">
<ToolTip Text="Thm file vo vn bn" />
</ext:GridCommand>
</Commands>
</ext:CommandColumn>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true" />
</SelectionModel>
<Listeners>
<Command Handler="Coolite.AjaxMethods.DoingCommand(command,record.data.ID);" />
</Listeners>
</ext:GridPanel>