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_Related Related Topics sp_TopicIcon
How do you disable column sorting
Tags: Sorting
28/10/2011
00:44
Avatar
derek
Member
Members
Forum Posts: 5
Member Since:
17/08/2011
sp_UserOfflineSmall Offline

Hello there.

I am running into some issues when I am using your wonderful tool.  I have an html tabel that I convert to a grid.  When I have a large row set, and I attempt to order the rows by a particular column, the rest of my data set disappears no where to be found (I am not using paging or anything).  This thing is due to go live real soon, so I figured I would just cut my losses and just get rid of the sorting capability.  How can I do that?  Some of the information online is a little bit confusing...

28/10/2011
14:59
Avatar
derek
Member
Members
Forum Posts: 5
Member Since:
17/08/2011
sp_UserOfflineSmall Offline

Don't worry yourselfs to much thinking about how to answer my questions.  I figured it out.  Infact, it must be that you responded to this post so fast, I am replying to it before you even posted it.  Some kind of space time continuim fluctuation or some such. 

But here is how you do what I requested...

jQuery(document).ready(function () {
            tableToGrid("#table1", { cmTemplate:{sortable:false},
            height: 400,
            autowidth: true,
            colNames: ['Name', 'Description', 'Population Type']
//            colModel: [
//                {name: 'Name', sortAble: false},
//                {name: 'Population ID', sortAble: false},
//                {name: 'Description', sortAble: false},
//                {name: 'is Active', sortAble: false},
//                {name: 'Population Type', sortAble: false},
//                {name: 'View History', sortAble: false}                
//            ]
            });
        });

You have to list all columns, but what the hey, it disables the sorting stuff.  Which works for me.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
29 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