jQWidgets Forums

jQuery UI Widgets Forums Grid JQXGrid Selection Mode

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  abd_wasey 3 years, 5 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • JQXGrid Selection Mode #121279

    abd_wasey
    Participant

    Hi,
    The selectionmode has been set to ‘none’ and I want to disable the mouse click option for selecting rows (and I want it to only work when I call a select-row method).. How can I do this?

    Regards,

    JQXGrid Selection Mode #121282

    ivanpeevski
    Participant

    Hi abd_wasey,

    When selectionmode is set to ‘none’, selection with mouse click will be disabled. If you wish to disable the hover effect when the mouse is over a row, you can use the enablehover: false property.

    Have a look at the example here: https://jsfiddle.net/3eo5juf4/

    If you have any other questions, please do not hesitate to contact us again!
    Best regards,
    Ivan Peevski
    jQWidgets Team
    https://www.jqwidgets.com/

    JQXGrid Selection Mode #121284

    abd_wasey
    Participant

    Hi,

    Thanks for your reply. Now I would like to select a row by programmatically clicking on the button or calling the method. is it possible ?

    Regards,
    Abdul

    JQXGrid Selection Mode #121285

    abd_wasey
    Participant

    When I am using JQWidget 7.1 version it works, but currently I am using 13.1.0, The difference between the select row methods in both versions is :
    In jqgrid.selection.js file
    In 13.1.0 Version if clause is added
    if (this.selectionmode !== ‘none’) { }

    JQXGrid Selection Mode #121286

    abd_wasey
    Participant
    JQXGrid Selection Mode #121287

    ivanpeevski
    Participant

    Hi Abdul,

    Thank you for the additional information. Disabling selection(including when using methods) is the expected behavior of the grid, but there are still some ways to achieve your functionality:
    If possible, you can use a local version of jqxgrid.selection.js and modify the if clause you shared above.
    If this is not possible, please have a look at the example here: https://jsfiddle.net/zu20dkny/
    In the demo grid, selection is only possible through methods by modifying the allowSelect variable.

    I hope this was of help!
    If you have any other questions, please do not hesitate to contact us again.
    Best regards,
    Ivan Peevski
    jQWidgets Team
    https://www.jqwidgets.com/

    JQXGrid Selection Mode #121289

    abd_wasey
    Participant

    Hi,
    Thanks a lot for helping me. and above example will be working on a singlerow. Thanks

    Regards,
    Abdul

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

You must be logged in to reply to this topic.