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 8854367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:51:52+00:00 2026-06-14T13:51:52+00:00

I have a dgrid like following code, my second field is a Tree, I

  • 0

I have a dgrid like following code, my second field is a Tree, I need call a XHR when user to click tree’s icon. How can I catch this event?

Thanks

        var CustomGrid = declare([OnDemandGrid, Keyboard, Selection, Pagination]); 

        var grid = new CustomGrid({ 
            columns: [ 
                selector({label: "#", disabled: function(object){ return object.type == 'DOCx'; }}, "radio"), 
                {label:'Id', field:'id', sortable: false}, 
                tree({label: "Title", field:"title", sortable: false, indentWidth:20}), 
                {label:'Count', field:'count', sortable: false} 
            ], 
            store: memoryStore, 
            pagingLinks: false, 
            pagingTextBox: true, 
            firstLastArrows: true, 
            pageSizeOptions: [10, 15, 25], 
            selectionMode: "single", // for Selection; only select a single row at a time 
            cellNavigation: false // for Keyboard; allow only row-level keyboard navigation 
        }, "grid"); 
  • 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-14T13:51:53+00:00Added an answer on June 14, 2026 at 1:51 pm

    I have found the solution looking at the dojo’s code.
    There is a file called mouse.js in dgrid/util, there you can find others examples like these:

    enterRow: handler(".dgrid-content .dgrid-row", "mouseover"),
            enterCell: handler(".dgrid-content .dgrid-cell", "mouseover"),
            enterHeaderCell: handler(".dgrid-header .dgrid-cell", "mouseover"),
            leaveRow: handler(".dgrid-content .dgrid-row", "mouseout"),
            leaveCell: handler(".dgrid-content .dgrid-cell", "mouseout"),
            leaveHeaderCell: handler(".dgrid-header .dgrid-cell", "mouseout"),
    

    So, for my case I have just added:

    clickCell: handler(".dgrid-content .dgrid-expando-icon", "click"),
    dblclickCell: handler(".dgrid-content .dgrid-cell", "dblclick"),
    

    Now you can test the new events in Grid_mouseevents.html in dgrid/test.

    regards.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dgrid, working with tree column plugin. Every time that the user
I have a Delphi 2007 DBGrid that I'd like to allow the user to
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=
I have lookup field, how to set 0 value when the field is null
I have this code which builds an IList<string> : IList<string> databases; using (MySqlConnection _conn
I have the following GridView <asp:GridView ID=grdImoveis runat=server DataSourceID=dsGrid> <Columns> <asp:BoundField HeaderText=Nome DataField=NomeCompleto />
I have the following sql DECLARE @tmpSelectedData TABLE -- table variable (SlNo INT IDENTITY(1,1)
I currently have the following XAML for my Grid control: <dxg:GridControl x:Name=DXGrid> <dxg:GridControl.Columns> <dxg:Column
I have a dbgrid and on its datasources onchange event there is some code
I have a situation where I have to allow the user to update either

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.