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
ts.grid is undefined when hiddengrid: true on 3.6.2
20/01/2010
02:59
Avatar
pruiz
New Member
Members
Forum Posts: 2
Member Since:
20/01/2010
sp_UserOfflineSmall Offline

Hi,

After upgrading to 3.6.2 from 3.5 some of my grid stoped working and 'ts.grid is undefined' started to appear on firebug's console.

Here is an example code failing:

$("#childs-grid").jqGrid({
                url: '/ListUrl',
                colModel: [
                    { name: 'Id', width: 5, align: 'center', hidden: true, editable: false },
                    { name: 'AccountCode', width: 15, align: 'center', editable: true, editrules: { required: true} },
                    { name: 'Credit', width: 15, align: 'right', editable: false },
                    { name: 'Disabled', width: 15, align: 'center', editable: true, edittype: 'checkbox' },
                    { name: 'Disabled Since', index: 'DisabledSince', width: 15, align: 'center', editable: false },
                    { name: 'Notes', width: 100, align: 'left', editable: true }
                ],
                align: 'center',
                gridstate: 'hidden', // Initial state == hidden
                hiddengrid: true, // FIXME: fails on jqGrid 3.6.2..
                rowNum: 10,
                height: false,
                caption: 'Business units list',
                create: true,
                altRows: true, // Alternate colors between rows..
                pager: jQuery('#childs-pager')
            });

22/01/2010
10:27
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Please verify that all your needed JS files are loaded. To do this you can use FireBug Net tab.

ts.grid mean that something is missed from the package. Also be a sure you have downloaded all the needed module,

following this instructions

http://www.trirand.com/jqgridw.....i:download

http://www.trirand.com/jqgridw.....to_install

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.

30/01/2010
22:57
Avatar
pruiz
New Member
Members
Forum Posts: 2
Member Since:
20/01/2010
sp_UserOfflineSmall Offline

Tried again downloading all jqgrid components, but it still fails.

Also I've tried with chrome and it shows a different error message: "Uncaught TypeError: Cannot read property 'hDiv' of undefined"

...

01/02/2010
08:22
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

These

 gridstate: 'hidden', // Initial state == hidden
 hiddengrid: true, // FIXME: fails on jqGrid 3.6.2..

have the same thing and you should not set them together.

The right is to set only

hiddengrid: true

gridstate is used internally to determine the state of the grid.

Also do you have updated the language file and the CSS file?

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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