Forum


19:06

03/05/2010

The sortable column functionality does not seem to work correctly. This is my case:
I have a grid with sortable columns. Then I drag the last column to the first position. Now it is not possible to resize the first column.
This is especially inconvenient when I define a resizable class: all columns are displayed as resizable, except the last column.
Is this a bug or is it caused by my grid configuration?
(test)Grid configuration:
$(document).ready(function () {
jQuery("#treegrid").jqGrid({
url:'http://localhost:50086/Users/L.....t' + '?page=1&rows=100&sidx=UserName&sord=desc&q=',
datatype: "json",
mtype: "GET",
colNames: ["Id", "UserName", "Name", "Email"],
colModel: [
{ name: 'id', index: 'id', width: 1, hidden: true, key: true },
{ name: 'UserName', index: 'name', width: 180 },
{ name: 'Name', index: 'acc_num', width: 80, align: "center" },
{ name: 'Email', index: 'debit', width: 80, align: "right" }
],
height: 'auto',
pager: "#ptreegrid",
ExpandColumn: 'name',
altclass: 'alternateRow', //The class that is used for alternate rows. You can construct your own class and replace this value. This option is valid only if altRows options is set to true
altRows: true, //Set a zebra-striped grid
resizeclass: "resizable", //Assigns a class to columns that are resizable so that we can show a resize handle only for ones that are resizable
multiselect: true, //If this flag is set to true a multi selection of rows is enabled. A new column at left side is added. Can be used with any datatype option.
scroll: false, //True scrolling on
rowNum: 100,
height: "auto",
autowidth: true, //The grid width is recalculated automatically to the width of the parent element.
forceFit: true, //The adjacent column (to the right) will resize so that the overall grid width is maintained
autoencode: true, //When set to true encodes (html encode) the incoming (from server) and posted data (from editing modules). By example < will be converted to <
sortable: true, //When enabled this option allow column reordering with mouse.
hoverrows: false
});
});
21:29

Moderators
30/10/2007

Hello,
Which is the grid version?
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
45 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66