jQWidgets Forums

jQuery UI Widgets Forums Grid link in grid

This topic contains 4 replies, has 2 voices, and was last updated by  Alexandra 10 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    link in grid Posts
  • link in grid #58062

    Alexandra
    Participant

    Hello,

    I have a problem accessing a link from a grid cell.

    I have a grid like this : http://jsfiddle.net/Alegzandra/a59u5/6/ in which the second column is acting like a button.

    If I click on a row it gets selected. Now If I want to click the “link” related to this selected row, the action bound to “link” is not triggered because the click will make the row editable ( editmode : ‘selectedrow’ ).
    So if my row is selected ( not in edit mode ) and I want to trigger the action associated to the “link” I have to click twice on it.
    Is there something that I can do so I don’t have to click twice on “link” to have my action executed ???

    Thank you!

    link in grid #58071

    Peter Stoev
    Keymaster

    Hi Alexandra,

    Why do you use “selectedrow” edit mode when you need a cell edit mode? i.e you have 2 columns and the second one is not editable. Only the first one is and single cell editing would be enough in your case.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    link in grid #58078

    Alexandra
    Participant

    Hey,

    This is just an example. In my real grid I have more columns.

    link in grid #58080

    Peter Stoev
    Keymaster

    Hi Alexandra,

    You can use this: http://jsfiddle.net/jqwidgets/Jt949/ as a solution.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    link in grid #58081

    Alexandra
    Participant

    Hey,

    It’s working great!

    Thank you very much!

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

You must be logged in to reply to this topic.