Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement] Option to exclude column from sorting. #99

Open
aTanCS opened this issue Feb 17, 2014 · 7 comments
Open

[enhancement] Option to exclude column from sorting. #99

aTanCS opened this issue Feb 17, 2014 · 7 comments

Comments

@aTanCS
Copy link

aTanCS commented Feb 17, 2014

Hi, thank you for this nice plugin. I got an idea for a new feature. Sometimes tables have a column with a row number. It would be useful to have an option to exclude this column from sorting.

@joequery
Copy link
Owner

Good point. I'll consider it, thanks!

@realtebo
Copy link

+1 for this

@realtebo
Copy link

realtebo commented May 6, 2014

Today I've a situation where this feature will be a lot usefull: One table, sortable, is a hit list. User ask me a fixed column 1.. 100, but other columns must be sortable.. I'm doing 'mumble mumble' on how to accomplish this

@xcy7e
Copy link

xcy7e commented Jul 22, 2015

how to achieve this now? Both issues are closed, but no solution provided in the "documentation" 👎

@joequery
Copy link
Owner

If you don't like the documentation you're free to send a PR or use a different project entirely.

@ghost
Copy link

ghost commented Dec 19, 2015

I wanted to not sort one of the columns when you click on th, but it seems this plugin sorts all columns. Is there a way to exclude? I didn't see any options in the documentation as well .Thought this ticket is the closest. Thanks.

@ethmz
Copy link

ethmz commented Apr 14, 2017

In the case of row numbers, it's possible to do this using a callback function:

var table = $('#your-table').stupidtable();

table.bind('aftertablesort', function (event, data) {
	var i = 1;
	$('.item-search-results td:first-child').each(function() {
	$(this).html(i);
		i++;
	});
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants