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
"0"s not appearing using Array Binding in JqGrid 3.3
07/11/2008
18:39
Avatar
robtani
Member
Members
Forum Posts: 10
Member Since:
08/11/2008
sp_UserOfflineSmall Offline

Hi,

First, thank you to anyone who has worked on this wonderful Grid control.  I have a simple grid with number values and just can't get it to display "0" digits.  It's always blank!

 I got the latest version, 3.3 and still have the same problem.  I'm using Array binding and everything works great except any zero values.  Does anyone know a solution ?? Is this a known bug ?

Any help would be greatly appreciated.

10/11/2008
07:10
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Could you please post the configuration and

the array data

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/11/2008
10:21
Avatar
robtani
Member
Members
Forum Posts: 10
Member Since:
08/11/2008
sp_UserOfflineSmall Offline

Hi,

Thank you for the feedback;  Here's the markup used for the Grid configuration:

jQuery(

"#grdDtsRostNeeds").jqGrid({ datatype: "local"

, width: 185, height: 165, colNames:

[

'Position', 'Start', 'Filled', 'Need'

],

colModel: [

{ name:

'Position', index: 'Position', width: 45, align: "center", sorttype: "string"

},

{ name:

'Start', index: 'Start', width: 36, align: "center", sorttype: "int"

},

{ name:

'Filled', index: 'Filled', width: 36, align: "center", sorttype: "int"

},

{ name:

'Need', index: 'Need', width: 45, align: "center", sorttype: "int"

}], imgpath: gridimgpath,

multiselect:

false, caption:

"Roster Needs"

});

Then I use a JS method called BindGrid to bind the data from the array into the Grid:





function

BindGrid(gridID, data) {

$(gridID).clearGridData();



for (var 

i = 0; i < max; i++)

$(gridID).addRowData(i + 1, data[i]);

}



 

10/11/2008
11:14
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

It seems to be a bug. Will make tests about this.

Currently you can use "0" instead of 0

Thank you

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/11/2008
11:17
Avatar
robtani
Member
Members
Forum Posts: 10
Member Since:
08/11/2008
sp_UserOfflineSmall Offline

Thank you so much for looking into it.  I'll anxiously await the fix.

Thank you again.

14/12/2008
07:15
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Fixed.

Thanks

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:
56 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