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
Resizing columns after sorting does not always work
03/05/2010
19:06
Avatar
marinos
Member
Members
Forum Posts: 4
Member Since:
03/05/2010
sp_UserOfflineSmall Offline

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 &lt;

sortable: true, //When enabled this option allow column reordering with mouse.

hoverrows: false

});

});

03/05/2010
21:29
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

04/05/2010
12:07
Avatar
marinos
Member
Members
Forum Posts: 4
Member Since:
03/05/2010
sp_UserOfflineSmall Offline

He Tony,

Thank you for looking into the issue.

The grid version is 3.6.4

Regards,

Bram

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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