1
다음은 내 코드입니다 :명령 이벤트에 ExtNet.Msg.Alert가 표시됩니까?
<ext:GridPanel ID="gpMaster" runat="server" Title="List Of Messages" StripeRows="true"
AutoWidth="true" TrackMouseOver="true" Height="330" StoreID="stoMaster">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ColumnID="ID" Header="ID" Width="50" DataIndex="ID" Resizable="false"
MenuDisabled="true" Fixed="true" Align="Right" />
<ext:Column ColumnID="Subject" Header="Subject" DataIndex="Subject" Align="Right"
Width="300">
</ext:Column>
<ext:Column Header="Sender" DataIndex="Sender" Width="100" Align="Right">
</ext:Column>
<ext:Column Header="Receive Date" DataIndex="ReceiveDate" Align="Right" Width="100">
</ext:Column>
<ext:ImageCommandColumn Width="60" Align="Right" Css="text-align:center;">
<Commands>
<ext:ImageCommand CommandName="Edit" Icon="TableEdit" Text="Edit">
</ext:ImageCommand>
</Commands>
</ext:ImageCommandColumn>
<ext:ImageCommandColumn Width="60" Align="Center">
<Commands>
<ext:ImageCommand CommandName="Delete" Icon="Delete" Text="Delete">
</ext:ImageCommand>
</Commands>
</ext:ImageCommandColumn>
</Columns>
</ColumnModel>
<DirectEvents>
<Command OnEvent="Command">
<EventMask ShowMask="true"></EventMask>
<ExtraParams>
<ext:Parameter Name="id" Value="record.data.ID" Mode="Raw" />
<ext:Parameter Name="command" Value="command" Mode="Raw" />
</ExtraParams>
</Command>
</DirectEvents>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true" />
</SelectionModel>
<BottomBar>
<ext:PagingToolbar ID="PagingToolBar1" runat="server" PageSize="10" StoreID="stoMaster"
EmptyMsg=" " DisplayMsg=" " BeforePageText="Page" Cls="LTR" />
</BottomBar>
</ext:GridPanel>
protected void Command(object sender, DirectEventArgs e)
{
int messageID = int.Parse(e.ExtraParams["id"]);
string commandName = e.ExtraParams["command"];
switch (commandName)
{
case "Edit":
ShowEditElements(messageID);
break;
case "Delete":
DeleteMessage(messageID);
break;
}
}
void ShowEditElements(int messageID)
{
ExtNet.Msg.Alert("edit", "ShowEditElements");//Problem
}
void DeleteMessage(int messageID)
{
ExtNet.Msg.Alert("del", "DeleteMessage");//Problem
}
모든 것이 OK이다, 그러나 ExtNet.Msg.Alerts가 표시되지 않았다! 무엇이 문제입니까? 어떻게 해결할 수 있습니까?