[eluser]paulopmx[/eluser]
[quote author="Kevin Kietel" date="1207084088"]Hi Paulo!
First I would like to say that your flexigrid is great!
I found a small bug (or maybe something that hasn't been implemented yet):
When you click a column which is NOT sortable, the Ajax request is still processed.
I added this to the
changeSort function:
changeSort: function(th) { //change sortorder
var col_id = ($(th).attr('axis').substr(3));
if(p.colModel[col_id]['sortable']!=true){
return false;
}
......
Hope this will be handy for other users
Greetings
Sander[/quote]
Thanks for the heads up :-)
Actually what happened was i rewrote the colModel, and forgot to remove the setting in Example 3, you don't have to declare if it's sortable, just don't assign a name in the configuration.
You don't need it. Flexigrid determines which column a data belongs by assigning an identifier to the column.