jQWidgets Forums

jQuery UI Widgets Forums Grid Grid Rowselect Type

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 8 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Grid Rowselect Type #89885

    iLoveJQWidgets
    Participant

    Hello,

    I need to be able to differentiate between what type of rowselect event occured.

    for example in the DropDownList widget, the “change” event has a type where you can tell if it is changed via the “api” or not.

    is there something similar for the jqxgrid for selecting a row? i’ve looked at the type object in the Event but it is set to rowselect regardless of whether it is done by the user (clicking a row) or the api (“selectrow”) method.

    alternatively if this is not possible is there a way to select a row without firing the rowselect event so that the row is highlighted as if it were clicked?

    Thanks!

    Grid Rowselect Type #89902

    Hristo
    Participant

    Hello iLoveJQWidgets,

    Unfortunately, no such option (as you mentioned) – (I am not sure but) you try to check the type when select row is it from mouse or keyboard.
    I would like to suggest you this alternative depends on from what you want to achieve.
    – to disable any key press could use handlekeyboardnavigation and to disable relevant keys.
    – to disable mouse clicking – use selectionmode: none property of the Grid.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.