[CLOSED] GridPanel MouseDown handler is fired twice

  1. #1

    [CLOSED] GridPanel MouseDown handler is fired twice

    Hi,

    I use GridPanel with defined MouseDown.Handler in code-behind.
          grid1.Listeners.MouseDown.Handler = " alert(e.button); ";
    I've noticed it is always fired twice. How to avoid it?

    I don't want to use MouseUp.Handler.

    Ext.net version 1.6.0.1867
    IE version 8.0

    Regards,
    PK

    Simple example:
    test15.aspx.cs
    using System;
    using System.Web;
    using Ext.Net;
    
    
    public partial class Pages_test15 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
          ResourceManager res_man = new ResourceManager();
          res_man.DirectMethodNamespace = "dm";
          res_man.IDMode = IDMode.Explicit; // explicit client IDs
          res_man.DisableViewState = true;
          res_man.AjaxViewStateMode = Ext.Net.ViewStateMode.Disabled;
          this.Controls.Add(res_man);          
          
          GridPanel grid1 = new GridPanel();
          grid1.ID = "grid1";
    
          Store store1 = new Store();
          grid1.Store.Add(store1);
    
          grid1.Listeners.MouseDown.Handler = " alert(e.button); ";
          this.Controls.Add(grid1);
               
          
        }
    }
    test15.aspx
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="test15.aspx.cs" Inherits="Pages_test15" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        
        </div>
        </form>
    </body>
    </html>
    Last edited by Daniil; Dec 18, 2012 at 2:11 PM. Reason: [CLOSED]
  2. #2

    Solution

    If the problem described above is not a bug please close the thread.

    I found solution: RowMouseDown.Handler

Similar Threads

  1. [CLOSED] JavaScript error when RowSelect handler is fired
    By Daly_AF in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 16, 2012, 6:15 AM
  2. Gridpanel Submit to Handler Issue
    By Rupesh in forum 1.x Help
    Replies: 2
    Last Post: Mar 12, 2012, 1:00 PM
  3. Replies: 2
    Last Post: Jan 09, 2012, 10:51 PM
  4. [CLOSED] Rowselect event fired after gridpanel rebinding
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Oct 24, 2011, 9:38 AM
  5. Replies: 10
    Last Post: Feb 02, 2011, 7:30 PM

Posting Permissions