How to Disable sorting of a particluar column in a visualization Table

6,825 views
Skip to first unread message

rputala

unread,
Apr 4, 2011, 4:57:32 PM4/4/11
to Google Visualization API
Hi,
Can we disable sorting for a particluar column in a visualization
table keeping sorting enabled for rest of the columns.
Currently the option sort:"disable" disables sorting for the entire
column.

Thanks.
rputala

Iftee

unread,
Apr 5, 2011, 12:01:35 PM4/5/11
to Google Visualization API
I am not sure, but using custom CSS, You can disable clicking on that
particular header element of the table. That may serve your purpose.

ChartALot

unread,
Apr 10, 2011, 3:37:33 AM4/10/11
to google-visua...@googlegroups.com
Hi,
You can set the 'sort' option to 'event' (explained in here). In that mode, sorting is not performed automatically, instead you get an event and you can choose how to sort (and if you want to sort at all).

From the docs:
'event' - When users click on the column header, a 'sort' event will be triggered, but the rows will not be automatically sorted. This option should be used when the page implements its own sort. See theTableQueryWrapper example for an example of how to handle sorting events manually.

I hope that helps.


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


Sanket Wakhare

unread,
Mar 23, 2017, 2:53:19 AM3/23/17
to Google Visualization API, rpu...@gmail.com
Thanks. It worked for me..wanted to remove sorting..sort : 'disable' does the job
Reply all
Reply to author
Forward
0 new messages