jQuery UI Widgets Forums Grid Click on the mouse wheel in a row

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Click on the mouse wheel in a row #49750

    antonomase
    Participant

    Hi,

    In the jqxdataTable I test if the user clicks on the left button or on the wheel to go to the linked URL in the same window or in a new one.

    
    function openlink (event, lnk) {
     var button = event.args.originalEvent.which;
     if (button == 2) {
      window.open(lnk, '_blank');
     } else {
      self.location = lnk;
     }
    }
    
    $("#jqxdatatable").on('rowClick', function (event) {
      var clickid = event.args.row.id;
      openlink (event, "newpage.php?id="+clickid) ;
    });
    

    I try to use the same tip on a jqxGrid

    $("#jqxgrid").on('rowclick', function (event) {
     var row = event.args.rowindex;
     var editid = dataAdapter.records[row]["id"];
     openlink (event, "newpage.php?id="+editid) ;
    });
    

    It works with the left button on the jqxGrid. But if I click on the wheel, the rowclick event is not activated.

    In a future release, can you add the behavior of the jqxDataTable to jqxGrid for the click event ?

    Thanks

    Click on the mouse wheel in a row #49753

    Peter Stoev
    Keymaster

    Hi antonomase,

    In general, we do not handle the mouse wheel clicks. We do not have any code about that. We will consider whether it is necessary or not to handle it in the future versions.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Click on the mouse wheel in a row #49756

    antonomase
    Participant

    It’s just that the rowClick event of dataTable can be executed on left click (button 1), right click (button 3) and wheel click (button 2).
    And the rowclick event of grid can be executed only on left click(button 1) or right click (button 3).

    Click on the mouse wheel in a row #49757

    Peter Stoev
    Keymaster

    Hi antonomase,

    These are different widgets and they have differences. If we find it necessary to implement rowClick on mouse wheel click, we will do it.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.