Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






Concatenate colModel Name

No Tags
UserPost

04:59
04/05/2012


paololayug

New Member

posts 2

Hi,

Can you please help me on how can I show/concatenate two strings in one cell? For example, in my name column, I want to display the firstName and lastName of the person. The data will be coming from a JSON.

JSON:

 {"teamlist":[{"firstName":"Rotchine","lastName":"Canet","resourceID":730,"teamID":897,"teamName":"team 2","usLead":"lead2","usMembers":"member2"}]


Here is part of my code:

  colModel : [{
        name : 'firstName', 
        index : 'firstName',
        width : 55,
        editable:true,
        edittype:'select',
        editoptions: {
         value:codata
         }
       }],   
       

I've tried 'firstName' + 'lastName', but this doesn't work. Is it possible to concatenate two strings in the colModel name property?


Kind regards,

Paolo

No Tags

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

157


Currently Online:

65 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 9590

Posts: 28783

Membership:

There are 10164 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1157

markw65 – 179

kobruleht – 144

phicarre – 126

YamilBracho – 124

Renso – 118

Administrators: admin (56 Posts)

Moderators: tony (7009 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information