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
Bug with setGridWidth
10/09/2009
06:15
Avatar
JimmyOS
Member
Members
Forum Posts: 14
Member Since:
10/09/2009
sp_UserOfflineSmall Offline

Hello, first I'd like to say that jQuery Grid is a great plugin and I like it a lot. Today I installed a new version of the Grid (Old: 3.5.2 / New: 3.5.3) and noticed that the grid didn't work anymore. I noticed that if I use a the local datatype und have none rows but try to set a new width, I'll get the following error from Firebug (1.4.2): $t.grid.cols[lvc] is undefined

I use this code:

$('#myTbl').jqGrid({
    datatype: "local",
    autowidth: true,
    height: 500,
    gridview: true,
    loadonce: true,
    deselectAfterSort: false,
    forceFit: true,
    rowNum: -1,
    sortname: 'rowid',
    colNames: ['Id', 'Number','Description', 'Street', 'Zipcode 'City'],
    colModel: [{name:'rowid', hidden: true},
               {name:'number', width: 80},
               {name:'description'},
               {name:'street'},
               {name:'zipcode',width:60},
               {name:'city'}],
    ondblClickRow: function (rowid, iRow, iCol) {
        $('#editRow').trigger ('click');
    },
    onSelectRow: function () {
        selectId = $('#myTbl').getRowData ($('#myTbl').getGridParam('selrow')).rowid;
    }
});
$('#myTbl').setGridWidth (600);

With grid version 3.5.2 this code worked.

10/09/2009
07:38
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. It is a bug. Fixed.

Best 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.

10/09/2009
08:40
Avatar
JimmyOS
Member
Members
Forum Posts: 14
Member Since:
10/09/2009
sp_UserOfflineSmall Offline

Thanks for your reply. Could you tell me, where I can download the fixed file?

11/09/2009
02:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Will publish soon the fix in GitHub.

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.

14/09/2009
03:55
Avatar
JimmyOS
Member
Members
Forum Posts: 14
Member Since:
10/09/2009
sp_UserOfflineSmall Offline

Thank you Tony, now it works 🙂

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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