Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Column reordering enhancement
03/03/2014
18:20
Avatar
Mohamed
Ottawa
New Member
Members
Forum Posts: 1
Member Since:
03/03/2014
sp_UserOfflineSmall Offline

Hi there,  I would like to have the columns in my grid reorderable using drag and drop. I understand that the sortable property is what needs to be set on the grid is as follows:

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

This works perfectly fine, however in my grid I would like the first column (sometimes multiple columns)  to not be reorderable through drag and drop and stay in its place and have the rest of the columns reorderable. In other words I am looking for a way to pick which columns are reorderable and which are not.

Another person who had a similar issue posted the following question on stackoverflow ("http://stackoverflow.com/questions/2317199/jqgrid-with-column-reordering").  I did try some of the suggested solutions and nothing there actually worked for me.
On my end I was able to manually turn off drag and drop for a particular column with the following javascript code:
$('#grid_id_column_id').on('mousedown', function(e){
   return false;
});
however the issue then was: although I could not drag that column other columns can be dragged to the location of that column, therefore making the first column still reorderable through the moving of the other columns around it to its location.
Any help or advice on how to resolve this issue would be much appreciated, thanks.
Mohamed
Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
37 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information