PDA

View Full Version : Using Ext-Grid with Objects (rather than primitives)



incunix
23 May 2007, 2:15 AM
Hey,

I was wondering how to display a piece of data inside my grid from a returned object (rather than primitive). The data is recieved with DWRProxy and its all working fine. Only that I also want to received transferable objects, and then display a string stored insode that object!

How do I define my column model and record to do this!?

Thank in advance,

Nick.

incunix
23 May 2007, 3:57 AM
Sorry, im new to this so I didnt know I could jsut use a renderer on you column model!!


{header: "From", width:200, renderer: function (value, p, record)
{
return record.data['sender'].address;
},
dataIndex: 'sender', id: 'sender'},

Cheers,
n.