Jan 23, 2014, 10:42 AM
store jsonPProxy directevent problem
my problem. acquisition, and other information from remote XML file to send to the server.
<ext:Store ID="GetRouterInfo" runat="server" AutoLoad="true" >
<Proxy>
<ext:JsonPProxy runat="server" Url="192.168.1.45/xxx.xml">
<Reader>
<ext:XmlReader Record="WISPrInfo" />
</Reader>
</ext:JsonPProxy>
</Proxy>
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="WISPrLocationID" Type="String" Mapping="WISPrLocationID" />
</Fields>
</ext:Model>
</Model>
<DirectEvents>
<Load OnEvent="SetWISPrInfo" Delay="1500">
<ExtraParams>
<ext:Parameter Name="WISPrLocationID" Value="this.getAt(0).get('WISPrLocationID')" Mode="Raw" />
</ExtraParams>
</Load>
</DirectEvents>
</ext:Store>
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
GetRouterInfo.Reload();
}
}
protected void SetWISPrInfo(object sender, DirectEventArgs e)
{
string wisprid = int.Parse(e.ExtraParams["WISPrLocationID"].ToString());
}
not running SetWISPrInfo method