tags:

views:

451

answers:

2

Hey guys,

I have a jqgrid and I can reorder my columns with this option in my JQGrid

    jQuery("#list").jqGrid({
                sortable: true,
                ... 
});

This functionality let me reorder ALL my columns. But I want that some columns must be on fixed places. Is there a way to solve this?

Thanks in advance!

Bruno

+1  A: 

You can set sortable for each column in the colModel

colModel: [{ name: 'name', index: 'name', sortable: true },...

Checkout the documentation it's pretty helpful.

Rigobert Song
if you enable that option, you can sort the table on that column.This will not affect my column to reorder the column from position.It would be nice if there was an option that i can put in my colmodel to disable the reordering for just one column...But thx.
bruno
doesn't look like this is possible with the jqgrid settings, you could try catch the th click event an stop the ordering for certain columns
Rigobert Song
+1  A: 

This ain't possible in jqgrid. I searched also a long time for this. And everything i tried failed.

Bert