PDA

View Full Version : grid some column data is undifined



guo0
30 Jun 2011, 12:31 AM
I have some questions: grid some column data is undifined

like this:
26832

my jsonstore:{"totalCount":"3","JData":[{"UserID":"1","UserName":"12313"},{"UserID":"17","UserName":"123156456"},{"UserID":"18","UserName":"123123123"}]}

store fields: [ 'UserID', { name: 'UserName ', type: 'string'}]
grid cm:[ { header: "UserID", dataIndex: 'UserID', sortable: true },
{ header: "UserName", dataIndex: 'UserName', sortable: true}]


ms sql : username varchar(50)

why username is undifined?
Help!!!

skirtle
30 Jun 2011, 3:48 PM
You have a space character between the e and the quote in 'UserName '.

guo0
25 Aug 2011, 8:34 PM
ths!!