jQWidgets Forums

jQuery UI Widgets Forums Grid not sort empty columns

This topic contains 2 replies, has 2 voices, and was last updated by  shakeel 7 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • not sort empty columns #95811

    shakeel
    Participant

    Hi,

    A column in a grid might not have any values. If a column has empty value in all the rows, I do not want to sort on click of column header. How can I do that?

    not sort empty columns #95821

    Stanislav
    Participant

    Hello shakeel,

    You might be looking for: sortable - enables or disables the sorting.
    Example:
    { text: 'Ship Name', datafield: 'ShipName', sortable: false,width: 250 },

    If you need more information, you can go to GRID API, there in the ‘columns properties’ you can read more about the column and its properties.

    Best Regards,
    Stanislav

    jQWidgets Team
    http://www.jqwidgets.com/

    not sort empty columns #95839

    shakeel
    Participant

    Thanks Stanislav for your response.

    setting sortable to false makes the column unsortable. However, my requirement is only when the column doesn’t have any values, then it shouldn’t be sortable. If it has values, then it can be sorted.

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

You must be logged in to reply to this topic.