[CLOSED] [1.0] Confirmation Message

  1. #1

    [CLOSED] [1.0] Confirmation Message

    is there a way to dynamically create confirmation message based on treepanel selection? so the message will show "Are you sure you would like to delete menuitem111"?

    Thank you!

    <ext:Button ID="btDelete" runat="server" Text="Delete" Icon="Delete">
    <Click OnEvent="DeleteItem">
    <Confirmation ConfirmRequest="true" Title="Delete" Message="Are you sure you would like to delete selected item? "/>
    <ext:Parameter Name="selectedMenu" Value="#{TreePanel1}.getSelectionModel().getSelectedNode().id"
  2. #2

    RE: [1.0] Confirmation Message


    You can set new message and title in BeforeConfirm handler
    BeforeConfirm="config.confirmation.message = 'New Message'; config.confirmation.title = 'New Title';"
  3. #3

    RE: [1.0] Confirmation Message

    Thanks! :-)
  4. #4

    confirmation message from gridpanel

    please help me,

    I need you before deleting a record, ask whether or not to remove it from the code begin.

    protected void Command(object sender, DirectEventArgs e)
           string fileWatchID = e.ExtraParams["id"];
           string comando = e.ExtraParams["command"];
           if(comando == "Delete")
                   Ent_Maestro oentidad = new Ent_Maestro();
                   oentidad.Id_categoria = Convert.ToInt32(fileWatchID);
                   X.Msg.Notify("Notificacion", "Registro Eliminado Correctamente.").Show();
               if (comando == "Edit")
                   int ID_CATEGORIA = Convert.ToInt32(fileWatchID);
                   Ent_Maestro oentidad = new Ent_Maestro();
                   DataSet tabla = new DataSet();
                   oentidad.Id_categoria = ID_CATEGORIA;
                   tabla = onegocio_M.Buscar_Categoria_Id(oentidad);
                   txtid_cat.Text = tabla.Tables[0].Rows[0]["ID_CATEGORIA"].ToString();
                   txtdec_cat.Text = tabla.Tables[0].Rows[0]["DESC_CATEGORIA"].ToString();
                   txtprov_cat.Text = tabla.Tables[0].Rows[0]["NOM_PROVEEDOR"].ToString();
                   txtresp_cat.Text = tabla.Tables[0].Rows[0]["NOM_RESPONSABLE"].ToString();
    before deleting ask and if yes, otherwise delete it must not execute anything.

    many thanks in advance.

Similar Threads

  1. [CLOSED] Confirmation Message
    By FpNetWorth in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 04, 2011, 12:58 PM
  2. [CLOSED] Translate password confirmation message
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 03, 2010, 6:11 PM
  3. Replies: 3
    Last Post: Aug 18, 2010, 9:34 PM
  4. [CLOSED] Yet another AjaxEvents Confirmation Message Question
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 08, 2010, 8:37 AM
  5. [CLOSED] Confirmation message question
    By methode in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 06, 2009, 8:23 AM

Posting Permissions