Oct 29, 2010, 5:13 PM
[CLOSED] [1.0] X.Msg.Notify bug?
I have a GridPanel that uses a RowEditor. The RowEditor has a Listener for the AfterEdit Handler that calls a [DirectMethod], which runs through the database and updates a log and updates the record in the database.
Problem is that I want to notify the user the record saved or failed to save. In the DirectMethod I call X.Msg.Notify("Title", "Message");, but the Notify box is never seen. Shouldn't this pass back some script JSON to run on the client?
.aspx snip
Problem is that I want to notify the user the record saved or failed to save. In the DirectMethod I call X.Msg.Notify("Title", "Message");, but the Notify box is never seen. Shouldn't this pass back some script JSON to run on the client?
.aspx snip
<ext:RowEditor runat="server" SaveText="Update">
<Listeners>
<AfterEdit Handler="Ext.net.DirectMethods.GridPanel_AfterEdit(r.id, Ext.encode(r.data));" />
</Listeners>
</ext:RowEditor>
.aspx.cs snip[DirectMethod]
public void GridPanel_AfterEdit(string id, string record)
{
var myRecord = JSON.Deserialize<JObject>(record);
this.UpdateRecord(id, myRecord);
X.Msg.Notify("Title", "Message"); <--- this doesn't show on the client side
}
Thanks.