jQWidgets Forums

jQuery UI Widgets Forums Grid Using a field from selected row?

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 7 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Using a field from selected row? #100909

    mwilliams0156
    Participant

    Martin,

    Thanks so much for you earlier help with my grid problems. I come to you with another n00b question.

    I have my grid working like I want it to, however, when I double click on a row, and my window opens up my end goal is to populate that window with an image.. My thought was to name the images in relation to the row index for simplicity though the ID field would probably be a better idea…

    I have tried to “hack” some of what I see here to do what I am seeking, but I’m unable to get it to work.. I understand that the rowdoubleclick event will be involved and I am assuming “event.args.rowindex” is the number I am seeking which I would then load an image with.. Just not savvy enough with JS to make it happen though.. I assume this is very simple so I thought it couldn’t hurt to ask for help. 🙂 (and yes, when mucking around with the below I *did* un-comment out the lines.. 🙂

    //alert(“Row with bound index: ” + event.args.rowindex +” has been clicked.s”);
    $(‘#grid’).on(‘rowdoubleclick’, function (event) {
    $(‘#window’).jqxWindow(
    // { content: ‘<br>’+
    // ‘ .row: ‘ + event.args.rowindex +'<br><br>’
    // + ‘ .Description      : ‘ + ‘<br>’
    // + ‘ .Pre       : ‘ + event.args.row.bounddata.Prefix });
    );

    $(‘#window’).jqxWindow(‘open’);
    });

    Using a field from selected row? #100916

    Martin
    Participant

    Hello mwilliams0156,

    You are right that the event.args.rowindex is the number of the row.
    I am not sure why you are unable to get it to work, as your code seems fine. What is the issue, actually?

    Here I created an example similar to your case: Example

    Best Regards,
    Martin

    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.