Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8478353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:43:20+00:00 2026-06-10T18:43:20+00:00

I have this button in Ext.Net: <ext:Button ID=BtnEliminar runat=server Text=<%$ Resources:BaseLocalizedText, General_BotonEliminar%> Icon=Delete ToolTip=<%$

  • 0

I have this button in Ext.Net:

<ext:Button ID="BtnEliminar" runat="server" Text="<%$ Resources:BaseLocalizedText, General_BotonEliminar%>"
    Icon="Delete" ToolTip="<%$ Resources:BaseLocalizedText, General_TooltipBotonEliminar%>" Disabled="true">
    <Listeners>
        <BeforeRender Handler="aceleradorTeclado(this, 'click', LocalizedScript.General_AceleradorTeclado_Eliminar, LocalizedScript.General_AceleradorTeclado_Eliminar_Tooltip);" />
        <Render Handler="asignarPermiso(this, 'Eliminar', true);" />
        <Click Handler="GridHandler.eliminar();" />
    </Listeners>
    <DirectEvents>
        <Click Url="~/Terminales/Eliminar/" CleanRequest="true" Complete="GridHandler.refresh()">
            <Confirmation ConfirmRequest="true" Title="<%$ Resources:BaseLocalizedText, General_TituloMensaje%>"
                Message="<%$ Resources:BaseLocalizedText, General_ConfirmacionBorrado%>" />
            <ExtraParams>
                <ext:Parameter Name="Serial" Value="GridHandler.valorColumna('Serial')" Mode="Raw"/>                            
            </ExtraParams>
        </Click>
    </DirectEvents>
</ext:Button>

I found how I can crete it in ExtJS, but don’t found how can add de DirectEvents:

if (validarPermiso('Eliminar')) {
    topbar.addButton({
        id: 'btnEliminar',
        xtype: 'button',
        text: LocalizedScript.General_BotonEliminar,
        iconCls: 'icon-delete',
        tooltip: LocalizedScript.General_TooltipBotonEliminar,
        handler: function () {
            GridHandler.eliminar();
        }
    });

    // Combinaciones de teclado
    aceleradorTeclado(btnEliminar, 'handler', LocalizedScript.General_AceleradorTeclado_Eliminar, LocalizedScript.General_AceleradorTeclado_Eliminar_Tooltip);
}

How I can add Direct Events to Button??

Thanks in Advance!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:43:22+00:00Added an answer on June 10, 2026 at 6:43 pm

    I found a Way to solve it, using [DirectMethod]. Maybe can help others.

    // Boton Eliminar
    if (validarPermiso('Eliminar')) {
         topbar.addButton({
         id: 'btnEliminar',
         xtype: 'button',
         text: LocalizedScript.General_BotonEliminar,
         iconCls: 'icon-delete',
         tooltip: LocalizedScript.General_TooltipBotonEliminar,
         handler: function () {
              Ext.Msg.confirm(LocalizedScript.General_TituloMensaje, LocalizedScript.General_ConfirmacionBorrado, function (btn) {
                   if (btn == "yes") {
    
                        // Si existen un registro seleccionado para eliminar
                        if (GridHandler.eliminar()) {
                             // Realiza el llamado al Controller para eliminar
                             Ext.net.DirectMethod.request({
                                  url: GetNewPath(GridHandler.getPathEliminar()),
                                  cleanRequest: true,
                                  params: GridHandler.getPrimaryKey(GridHandler.getRecord()),
                                  success: function (result) {
                                       //Ext.Msg.alert('Mensaje', result);
                                  },                            
                                  eventMask: {
                                       showMask: true,
                                       msg: LocalizedScript.General_Mask_Eliminar
                             }
                        });
                   }
              }
              else {
                   return false;
              }
         });
     },
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this input text and an input button...I am looking to have them
Let's suppose I have this this simple button: { xtype :'button', text :'button', id:'address'+counter.no,
I have this button: <img src=static/img/facebook_button.png id=login-fb onclick=login(); /> I also have this script:
I have this button on the leftside of my UISplitViewController (RootViewController) that has a
I have this button which is not working correctly for hold button for a
i have this button xml, when it be will pressed, the pressed image(b) would
So I have this hidden form and this 'I like this' button that I
I am stuck at a small problem. I have this button within a form
I have this situation: $(#button).toggle(function(){ $(#window).animate({top:'0%'},1000); },function(){ $(#window).animate({top:'-100%'},1000); }); but I need change it
I have an add this button on the website that is rendering a border

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.