[CLOSED] [1.0] X.Msg.Notify bug?

  1. #1

    [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
    <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.
  2. #2
    Hi,

    You have to call Show method
    X.Msg.Notify("Title", "Message").Show();
  3. #3
    Hi,

    Please use the .Show() method.

    Example
    X.Msg.Notify("Title", "Message").Show();
  4. #4
    Easy enough. Thanks.

Similar Threads

  1. Replies: 6
    Last Post: May 11, 2012, 8:17 PM
  2. notify the User when the cell editor is not valid
    By ascsolutions in forum 1.x Help
    Replies: 2
    Last Post: Mar 20, 2012, 3:42 PM
  3. X.Msg.Notify show with delay ?
    By xtremexploit in forum 1.x Help
    Replies: 2
    Last Post: Feb 17, 2012, 10:00 PM
  4. Ext.Msg.notify
    By threewonders in forum 1.x Help
    Replies: 4
    Last Post: Mar 10, 2011, 6:00 PM
  5. X.Msg.Notify with DirectEvent
    By csharpdev in forum 1.x Help
    Replies: 1
    Last Post: Oct 28, 2010, 2:21 PM

Posting Permissions