ExtJS Data Grid Column renderer to have multiple values
Posted
by Podlsk
on Stack Overflow
See other posts from Stack Overflow
or by Podlsk
Published on 2010-04-07T12:20:02Z
Indexed on
2010/04/07
12:23 UTC
Read the original article
Hit count: 323
extjs
|JavaScript
Hi,
I am wondering if it is possible in ExtJS to have several values of the data source available to the renderer of the column. For example with the "Actions" column, the id is passed to the renderer. However I require both the user_id and id passed to the render. How may I do this?
table_cols = [{
header: "User ID",
width: 30,
sortable: true,
dataIndex: 'user_id'
},
{
header: "Actions",
width: 60,
sortable: false,
dataIndex: 'id',
renderer: function(val) {
//IF USER ID MEETS A CONSTRAINT PRINT THE ID
}
}];
Thanks.
© Stack Overflow or respective owner