jQWidgets Forums

jQuery UI Widgets Forums Grid Repeating hyperlink on sort

This topic contains 4 replies, has 2 voices, and was last updated by  Hristo 4 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Repeating hyperlink on sort #114936

    ajcs
    Participant

    I think I have found a bug where a hyperlink is repeated in blank cells above/below when sorting in my application.

    Try this example:
    http://jsfiddle.net/conb5dxt/1/

    Instructions:
    1. Click Run a few times until you get at least one cell containing the hyperlink in the Product column.
    2. Click on the Product header multiple times to keep sorting it.

    3. Now you see the problem that the hyperlink is repeated to fill all of the blank cells.

    Repeating hyperlink on sort #114941

    Hristo
    Participant

    Hello ajcs,

    Please, take a look at this example:
    http://jsfiddle.net/txhi/aj4gdrx5/
    It is based on the Column Templatedemo.
    Which demonstrates the right approach how to implement the hyperlinks.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    Repeating hyperlink on sort #114944

    ajcs
    Participant

    The text rendered does not match the other columns. It is not aligned properly and is in the top left corner of the cell. It is not aligned in your demo either.

    How do you make it match the alignment of the rest of it?

    Repeating hyperlink on sort #114947

    ajcs
    Participant

    I used a div with margin but it is trial and error to get it to line up with the grid text

    Repeating hyperlink on sort #114959

    Hristo
    Participant

    Hello ajcs,

    Yes, you could wrap the cell content in the div tag or someone else and stylize it.
    Another option is to use the cellclassname property to add a class for this column.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.