Feb 28, 2011, 1:58 PM
[CLOSED] DirectMethod not firing
based on this example https://examples1.ext.net/#/Events/D...hods/Overview/ I did:
This part is located inside of void Page_Load
my .ascx file have declaration like this:
This part is located inside of void Page_Load
new Ext.Net.ListView {
ID = this.ID + "_DocuRefListView",
EmptyText= Labels.GetLabel("@SYS111699"),
StoreID = DocuRefStore.ClientID,
Selectable = true,
HideHeaders = true,
ColumnSort = false,
Listeners = {
Click = {
Handler="Ext.net.DirectMethods.TestDirect();"
}
},
Columns = {
new ListViewColumn {
Header = Labels.GetLabel("@SYS22563"),
DataIndex = "Name",
Template = "{Name}"
},
new ListViewColumn {
Header = Labels.GetLabel("@SYS21858"),
DataIndex = "createdDateTime",
Template = @"{createdDateTime:date(""m-d-Y H:i"")}"
}
}
}
and [DirectMethod]
public void TestDirect()
{
X.Msg.Alert("QQ","ZZ").Show();
}
and nothing is showing after click. I look on Firebug but nothing happened on click. Click is fired because Fn="alert('QQ')"
is showing.my .ascx file have declaration like this:
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<%@ Import Namespace="System.Collections.Generic" %>
<ext:ResourceManager ID="ExtResourceManager1" runat="server"
CleanResourceUrl="True" GZip="True" ScriptMode="Release" SourceFormatting="False" DebugConsole="Firebug" />
Last edited by Daniil; Mar 01, 2011 at 8:29 AM.
Reason: [CLOSED]