jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts

  • moby41
    Participant

    Hi Peter,

    Thank you for your reply. Here is my code.
    I need to put a link in table to display it.
    Any other bypass you can offer?

    // Create jqxListBox
        $('#listbox').jqxListBox({
            ......
            renderer: function (index, label, value) {
                var datarecord = jsonDATA[index];
    
                var table = '<table>' +
                                '<tr>' +
                                '<td rowspan="2">' + '<a target="_blank" href="' + datarecord.S5 + '" style="display: block;">Apply</a>' + '</td>' +
                                '<td >' + datarecord.S3 + '</td>' +
                                '</tr>' +
                                '<tr>' +
                                '<td >' + datarecord.S4 + '</td>' +
                                '</tr>' +
                            '</table>';
                return table
            }
        });

    Thanks.


    moby41
    Participant

    Hi Peter,

    That’s very helpful. Since I’m not familiar with widget, and it looks like I need to overwrite “_destroy” method, so I decided to add document.createElement("div") method after removed it. It works fine. Thank you for your reply.

    in reply to: Disable scrollbar Disable scrollbar #79502

    moby41
    Participant

    Ok, thanks anyway.

    in reply to: Disable scrollbar Disable scrollbar #79498

    moby41
    Participant

    Thanks! That’s very helpful!
    One more question, how to set sortable property in listbox? I noticed datatable has this property, and I also don’t find a property I can set ‘asc’..

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