jacky.wu
Posts: 15
Joined: Fri Nov 22, 2024 4:28 am

Some Issues with DataGrid

Hello,

I found some issues while using DataGrid:
  • When using multiple levels of headers, if I set sorting to either true or false for a column, sorting doesn't work. However, if I don't set sorting at all, sorting works as expected.
    I found this issue by modifying the following code in this demo:
    https://jsfiddle.net/gh/get/library/pur ... ed-headers

    Code: Select all

    {
        id: 'weight',
        header: {
            format: 'Custom weight'
        },
        sorting: true
    }
andrzej.b
Site Moderator
Posts: 475
Joined: Mon Jul 15, 2024 12:34 pm

Re: Some Issues with DataGrid

Hi,

Thanks for reaching out.

As for the first issue, your first link is not working, hence I'm unable to tell what is wrong there.
As for the second issue, have you checked the documentation: https://www.highcharts.com/docs/datagri ... s#defaults?
You should use the following syntax:

Code: Select all

{
    id: 'weight',
    header: {
        format: 'Custom weight'
    },
    sorting: {
        sortable: false
    }
}
Please let me know if I can be of any further assistance.

Kind regards,
Andrzej
Highcharts Developer
jacky.wu
Posts: 15
Joined: Fri Nov 22, 2024 4:28 am

Re: Some Issues with DataGrid

Hi,

Sorry for not noticing the broken link earlier. The correct demo is this official one, opened via JSFiddle:
https://www.highcharts.com/demo/dashboa ... ped-header

As for the second issue, please forgive my oversight. I thought it could be set directly in sorting. Thank you for your help!
User avatar
dawid.d
Site Moderator
Posts: 1217
Joined: Thu Oct 06, 2022 11:31 am

Re: Some Issues with DataGrid

Hello,

Thank you very much for the input!

It's a bug, I reported it here: https://github.com/highcharts/highcharts/issues/22301

We will fix it in the near future, we're mainly focusing on refining styles and fixing these types of bugs now.

Best regards,
Dawid Draguła
Highcharts Developer

Return to “Highcharts Dashboards”